cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

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: 
Highlighted

How to solve conflict folder error with Dropbox API

Explorer | Level 4

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?

 

1 Accepted Solution

Accepted Solutions
Highlighted

Re: How to solve conflict folder error with Dropbox API

Super Collaborator | Level 20

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.

Hope this casts some light.

View solution in original post

2 Replies 2
Highlighted

Re: How to solve conflict folder error with Dropbox API

Super Collaborator | Level 20

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.

Hope this casts some light.

View solution in original post

Highlighted

Re: How to solve conflict folder error with Dropbox API

Explorer | Level 4

I thought it was set automatically as you had to choose the file in the UI. Thanks a lot for your help.

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?