cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File upload

File upload

Yarzar_HlaingOo
Explorer | Level 3

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

Greg-DB
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.

View solution in original post

1 Reply 1

Re: File upload

Greg-DB
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.

View solution in original post

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?