Forum Discussion

wen_hsiao's avatar
wen_hsiao
Explorer | Level 4
5 years ago

"client_modified" was not updated after upload

I found that the "client_modified" of a file was not updated if the file is already exists on Dropbox.

API: https://www.dropbox.com/developers/documentation/http/documentation#files-upload

 

This is my test steps (using HTTP request)

1. upload a file (with client_modified)

// the client_modifed was updated

2. upload the same file (with only client_modified time changed)

// the client_modified was NOT updated

 

You can get the same results from API explorer
https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    If the file contents are identical, this is the expected behavior. When the old and new file contents are exactly the same, Dropbox doesn't consider it a change and so no new metadata is written. We'll consider it a feature request for the ability to change the client_modified without changing the file data, but I can't promise if/when that might be implemented.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 15 minutes ago
352 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!