We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
vherasme
6 years agoExplorer | Level 4
How to solve conflict folder error with Dropbox API
I am using Dropbox API explorer to test the upload of a file before usign the code. I am getting an error when in my opinion all the params are right.
request:
curl -X POST https://content.dropboxapi.com/2/files/upload \ --header 'Authorization: Bearer aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' \ --header 'Content-Type: application/octet-stream' \ --header 'Dropbox-API-Arg: {"path":"/my/folder/","property_groups":[]}' \ --data-binary @'myspreadsheet.xlsx'
response:
{ "error_summary": "path/conflict/folader/..", "error": { ".tag": "path", "reason": { ".tag": "conflict", "conflict": { ".tag": "folder" } }, "upload_session_id": "AAAAAAAABAAAAAAAA" } }
When I send a request to `https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder` I get the path to
/my/folder
in the response, which is EMPTY by the way. Can anyone help?
Hi vherasme,
What is the file name you want to upload to (not the local one - 'myspreadsheet.xlsx')? You point only directory ("/my/folder/"), but not the file in side! "path" have to point to file where local content will be uploaded to. :wink:
Hope this casts some light.
- vherasmeExplorer | Level 4
I thought it was set automatically as you had to choose the file in the UI. Thanks a lot for your help.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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 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!