Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
when trying to upload a file into the app folder using POST I get "Bad HTTP “Content-Type” header" error, however when trying to download a file using GET it works, the following is my POST, needless to say that I've tried all possible "Content-Type" without any success:
what is it I am missing here?
Thank you all in advance!
Best,
Ram
In your screenshot, you're setting your Content-Type header to "text/json". The error message is indicating that only "application/octet-stream" or "text/plain; charset=dropbox-cors-hack" are accepted.
Thank you for your quick reply!
as I wrote in my msg, I've tried all possible "Content-Type" without any success including "application/octet-stream" or "text/plain; charset=dropbox-cors-hack"
Can you share screenshots for those attempts then?
sure, different REST client using Firefox:
The response includes the Content-Type header that the API received. In both of these additional cases, it seems "; charset=UTF-8" was appended to the Content-Type you specified, resulting in an invalid Content-Type. Firefox is known to do this.
I posted an answer here about Firefox's behavior, including some information on ways to do this properly:
https://stackoverflow.com/questions/33902289/using-dropbox-v2-api-from-browser
Thank you, since its 3AM here I'm off to sleep now so I'll dive into it tomorrow, many thanks for your support!!!
Dear Gregory,
I've used a standalone REST client instead of the browsers add ins and this works as it should, once again, thank you for your support!
Best,
R.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!