cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

WriteMode: overwrite. Autorename strategy?

WriteMode: overwrite. Autorename strategy?

Ed-
Explorer | Level 4
Go to solution

In the WriteMode (union) the options are add, overwrite or update.

If I set it to overwrite, I think there is no autorename strategy needed.

 

Still, the documentation says: "The autorename strategy is the same as it is for add".

And the explanation for Aadd is: "The autorename strategy is to append a number to the file name. For example, "document.txt" might become "document (2).txt""

 

How can that apply to overwrite?

 

Thanks.

 

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
Although less common for the 'overwrite' mode, there are still some conflicts that can occur where the 'autorename' parameter will matter. For example, if you try to upload to a path where a folder (not a file) already exists, that will be considered a conflict and the folder (and its children) will not be overwritten. The 'autorename' parameter will then determine whether or not to commit the file at a different path instead.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution
Although less common for the 'overwrite' mode, there are still some conflicts that can occur where the 'autorename' parameter will matter. For example, if you try to upload to a path where a folder (not a file) already exists, that will be considered a conflict and the folder (and its children) will not be overwritten. The 'autorename' parameter will then determine whether or not to commit the file at a different path instead.

Ed-
Explorer | Level 4
Go to solution

OK, I didn't realize about that. Thank you.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Ed- Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?