Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
an wrong in dropbox api v2 document
curl -X POST https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer " \ --header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" \ --header "Content-Type: application/octet-stream" \ --data-binary @local_file.png
when i set header
--header "Content-Type: application/octet-stream" \
=> can't send/ return error
but when i remove that header and add
--header "Content-Type: text/plain; charset=dropbox-cors-hack" \
=> return 200, succeed,
recheck: file was upload successful
Hi Steve , i got an issue where content-type get rewite to charset=utf-8 , i'm using ajax and firefox , what is that known issue ? and how to solve it ?
@aaqrabaw There's a post here that should be helpful:
https://stackoverflow.com/questions/33902289/using-dropbox-v2-api-from-browser/34168434#34168434
Me to facing the same issue. ( https://www.dropboxforum.com/t5/API-Support-Feedback/Unable-to-upload-the-file-via-API/m-p/331068#M2... )
@iosenqa I'll follow up with you on your new thread.
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!