We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
zangetsu
4 years agoExplorer | Level 3
C++ getting an error when uploading file
Hi, i'm using an ESP to upload files from an SD card to the dropbox API. i'm using the following request:
#define upload "/2/files/upload HTTP/1.1\r\n"
#define host_content "Host: content.dr...
Greg-DB
Dropbox Community Moderator
4 years agozangetsu The file metadata shouldn't cause an issue like this. I do see that you're getting two different HTTP responses though, one with a 200 status code (for the successful file upload), and then one with a 400 status code (which can occur when the servers receive an invalid HTTP request). So, as Здравко indicated, it looks like you may actually be sending more than one HTTP request, perhaps one valid one for the upload call and then one invalid one. (For instance, you might be sending additional data on the connection, after the actual API call data is sent.)
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!