We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Yarzar_HlaingOo
7 years agoExplorer | Level 3
File upload
Hello everyone, according to HTTP API Documentation (https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-add), I made this HTTP post from my esp8266 as in t...
- 7 years ago
There are a few ways this might be breaking based on what you shared here:
- Is the value of `Link` definitely correct? (I'm asking since the value isn't set within the code you shared.)
- It looks like the "Content-Length" value of "13" is incorrect. Your request body is longer than that. Try editing your code to supply the correct value.
Also, in general, we recommend trying to avoid constructing the HTTP request manually like this. If possible, using an HTTP client that can automatically build the HTTP request for you based on native objects is generally less prone to errors like this.
Greg-DB
Dropbox Community Moderator
7 years agoThere are a few ways this might be breaking based on what you shared here:
- Is the value of `Link` definitely correct? (I'm asking since the value isn't set within the code you shared.)
- It looks like the "Content-Length" value of "13" is incorrect. Your request body is longer than that. Try editing your code to supply the correct value.
Also, in general, we recommend trying to avoid constructing the HTTP request manually like this. If possible, using an HTTP client that can automatically build the HTTP request for you based on native objects is generally less prone to errors like this.
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!