Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
reseda333
4 years agoNew member | Level 2
Unable to correctly upload images using the Dropbox API in Matlab
I am trying to upload an image to Dropbox using the Dropbox API and Matlab's webwrite function. I get a successful response when running the below code. However, the response says 'size: 215' when ...
Greg-DB
Dropbox Community Moderator
4 years agoThe Dropbox API will save whatever data you supply in the HTTPS request body for the upload call as the file data, so you'll need to make sure you're sending the exact correct binary data that you want to store.
In the code you shared here, that seems to be your "data" variable. Make sure that variable contains the data you expect to be sending.
We can't officially provide support for third party platforms like MATLAB, as that's not made by Dropbox, but looking at the rest of your code, I recommend investigating the use of the fopen, fread, and char methods. For instance, is that char method call needed/correct? It looks like it may be modifying the data you mean to send.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!