Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Trương K.
10 years agoNew member | Level 1
Api v2 upload document wrong
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
13 Replies
Replies have been turned off for this discussion
- Greg-DB8 years ago
Dropbox Community Moderator
aaqrabaw There's a post here that should be helpful:
https://stackoverflow.com/questions/33902289/using-dropbox-v2-api-from-browser/34168434#34168434
- iosenqa6 years agoExplorer | Level 4
Me to facing the same issue. ( https://www.dropboxforum.com/t5/API-Support-Feedback/Unable-to-upload-the-file-via-API/m-p/331068#M21073 )
- Greg-DB6 years ago
Dropbox Community Moderator
iosenqa I'll follow up with you on your new thread.
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!