We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Ed-'s avatar
Ed-
Explorer | Level 4
8 years ago

WriteMode: overwrite. Autorename strategy?

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.

 

 

  • 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.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    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-'s avatar
      Ed-
      Explorer | Level 4

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

If 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!