This function allows a user to upload files using MATLAB to DropBox. The function does not require the user to have the DropBox application installed. It uses publicly documented APIs to upload the file to DropBox using the WEBWRITE function in MATLAB.
Paul, the release compatibility for this function indicates that it will work with R2015a or later, however the neither the STRING class nor the HEADERFIELDS property for the WEBOPTIONS object appear to exist in MATLAB 2015b. Is there a work-around?
Paul: The Dropbox access token is just a string, so there is no limit on how long it can be. You'd call this function like this:
uploadToDropbox('YOUR VERY LONG ACCESS TOKEN HERE', 'c:\foobar.txt')
My access token exceeds the MATLAB maximum name length of 63 characters and is truncated. How can I do?
It appears DropBox changed their API. I updated the function to use the new API. Try getting the latest version of the file.
Undefined function or variable 'weboptions'
How to remove this error
Change the title of the FX entry
Updated to use v2 of DropBox API
Create scripts with code, output, and formatted text in a single executable document.