cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

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: 
Highlighted

Error 400 while uploading a file

Explorer | Level 3

dropbox rest APi was working good so far. Nevertheless i am facing a new issue while uploading file

 

[ Error in call to API function "files/upload": Bad HTTP "Content-Type" header: "multipart/form-data; boundary=--------------------------887865632890002114004440".  Expecting one of "application/octet-stream", "text/plain; charset=dropbox-cors-hack".] with my ios9 application.

kindly help me with this

1 Reply 1
Highlighted

Re: Error 400 while uploading a file

Dropboxer
Dropboxer
Your app appears to be sending a "multipart" Content-Type, instead of one of the allowed values: "application/octet-stream" or "text/plain; charset=dropbox-cors-hack". You'll need to make make sure your app only sends one of those allowed values.

Exactly how you do this depends on what SDK/library/HTTP client you're using. It looks like you're probably not using one of our SDKs, so I'm afraid I can't offer specific instructions. Sometimes, HTTP clients will automatically choose a Content-Type value like that, so you'll need to refer to the documentation for whatever client you're using for instructions on how to specify it properly.
Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?