Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
when i use dropbox api for uploading file. the http header contain chinese, for example:
"Dropbox-API-Arg:{\"path\": \"/Test/中文.doc\",\"mode\": \"add\",\"autorename\": true,\"mute\": false,\"strict_conflict\": false}".
it will response error message:
Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": could not decode input as JSON.
how should i do?
thanks.
@Sekali You didn't include how you're building your requestJson string, but the result doesn't look correct. You have "\\u" instead of "\u". Update your implementation to produce the correct JSON string. You can find more information in the documentation here.
Thanks , I sloved it. it's works , it's my fault. When I use Gson to convert object to JSON STRING ,it has a problem
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!