Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
vijaysingh109
7 years agoExplorer | Level 4
Error in call to API function "files/upload": Bad HTTP "Content-Type"
Hi, We are trying the upload a file from ZOHO deluge to dropbox upload API and getting the following error. Error in call to API function "files/upload": Bad HTTP "Content-Type" header: "a...
vijaysingh109
7 years agoExplorer | Level 4
Hi Greg.
Thanks for the reply, We are not setting any additional header except "application/octet-stream".
Here is what we are setting the headers:
mapOfHedder.put("Content-Type","application/octet-stream");
Is there any other thing which you can think of the reason for the specific error?
Unable to attach snapshot from select file else I could have done it.
Greg-DB
Dropbox Community Moderator
7 years agoI see that you are setting a correct value in your code, but it looks like your network client is overriding that setting for some reason. We have seen that sometimes, e.g., where the network client later interprets something else, for instance the way the request body itself is being set, and then overwrites the Content-Type value.
You'll need to investigate why your network client is overriding your value, and how to prevent that. That will be specific to your client though, so I can't provide specific instructons unfortunately.
About Discuss Dropbox Developer & API
Make connections with 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!