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.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Unable to upload duplicate files using C#

Unable to upload duplicate files using C#

hinjorr
Explorer | Level 3
Go to solution

 

FileMetadata data = await token.Files.UploadAsync("/" + Folder + "/" + file.FileName, WriteMode.Add.Instance, body: memoryStream);

 

 
 
this is my code and I'm unable to upload duplicate files.
 
1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

From your description and code, if you're uploading the exact same data again, the expected behavior in this case would not be to add another file. Note that uploading identical data to the same path results in no change. If you do want additional duplicate copies created, you can set 'strictConflict: true' and 'autorename:true' on your UploadAsync call though.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

From your description and code, if you're uploading the exact same data again, the expected behavior in this case would not be to add another file. Note that uploading identical data to the same path results in no change. If you do want additional duplicate copies created, you can set 'strictConflict: true' and 'autorename:true' on your UploadAsync call though.

Need more support?