cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Known issues updated. Learn more
Highlighted

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 the first picture.

 

a.png

The response I got was the following html code. This indicates ERROR 404. Can anyone point out the mistake in my code, please?

ps: I am also finding itb.png

1 Accepted solution

Accepted Solutions

Re: File upload

Dropboxer

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.

Reply
Loading...
1 Reply

Re: File upload

Dropboxer

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.

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post