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: 

Api v2 upload document wrong

Api v2 upload document wrong

Trương K.
New member | Level 1

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 13

aaqrabaw
New member | Level 2

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 ?

Greg-DB
Dropbox Staff

iosenqa
Explorer | Level 4

Greg-DB
Dropbox Staff

@iosenqa I'll follow up with you on your new thread.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    iosenqa Explorer | Level 4
  • User avatar
    aaqrabaw New member | Level 2
What do Dropbox user levels mean?