We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Gustavo L.5
10 years agoNew member | Level 1
Can't upload xlsx file to dropbox app
Hi guys, as the title says, I'm unable to upload an xlsx file, I can successfully upload other formats as xls, pdf, ppt, etc. but this gives an error in the moment I'm trying to upload it.
The ...
Gustavo L.5
10 years agoNew member | Level 1
Playing a little more with this I noticed the error is because of some "special" characters in the json sent (specifically the path of the file). So this seems like an encoding issue, when I send a file which contains an 'ó' in the name, it gives this error:
{"readyState":4,"responseText":"Error in call to API function \"files/upload\": HTTP header \"Dropbox-API-Arg\": could not decode input as JSON","status":400,"statusText":"Bad Request"}
but if I change that 'ó' by an 'o' (with no accent) it works well.
I've been playing with contentType parameter in the ajax call but I can't make it work, any ideas?
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!