MATLAB Answers

How to change data files of a deployed web app and maintain this change across sessions

4 views (last 30 days)
I have a seployed web app which uses, internally, a number of Excel files, from where it reads some data. During runtime, I would like the user to be able to download one of those files, modify some data at wish and upload the modified file. The app should then be using that modified file instead of the initial one. Additionally, I want the modified file to persist across different runs of the app. Ideally, the modified file would be overwritting the initial file in the .ctf package.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 12 Jul 2019
The closest you can get is at run time figure out a suitable directory to check for files and to store into when the user makes changes.
You will have to decide whether the changes are to be available only to the one user or to all user on the same host or to all users of your application on all hosts.

  6 Comments

Show 3 older comments
Walter Roberson
Walter Roberson on 15 Jul 2019
https://www.mathworks.com/matlabcentral/answers/429699-writing-a-file-to-google-drive
In the most common uses, Google Drive and Microsoft One Drive mount like a network drive. However that assumes that the user is logged into that account. The above link does not assume login in that manner.
Chris Oreinos
Chris Oreinos on 17 Jul 2019
I think Google Drive storage is out of the question due to company's security policies. However, saving to MS OneDrive is fine. Is there a way for MATLAB to read/write data from OneDrive? My search didn't result in any useful result.
Walter Roberson
Walter Roberson on 17 Jul 2019
Unfortunately I do not know much about OneDrive api. I do see
https://docs.microsoft.com/en-us/onedrive/developer/?view=odsp-graph-online
https://github.com/isac322/OneDrive-SDK-java
So it would be possible to connect to onedrive through an api such the Java api on github.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2018b