cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

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: 

Response headers

Response headers

wheel
Explorer | Level 4

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.

11 Replies 11

Greg-DB
Dropbox Staff

@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.

Sekali
Explorer | Level 4

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 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Sekali Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?