Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

gonzalogg's avatar
gonzalogg
New member | Level 2
9 years ago
Solved

If-Modified-Since and Last-Modifed headers

Hi, i need to know if Dropbox supports If-Modified-Since and Last-Modifed http headers.   The thing is that i need to know when a file is updated, and i think this fuctionality is not sopported by ...
  • Greg-DB's avatar
    9 years ago

    The Dropbox API doesn't support If-Modified-Since/Last-Modifed header functionality.

     

    Instead, to check if a file has changed, you can store/check the 'rev' value in the file's metadata. For example, you can call /2/files/get_metadata and store the returned 'rev' value. When you call back later, if the 'rev' value has changed, you know the file changed. This also works with any call where you get file metadata back, e.g., /2/files/list_folder[/continue], etc. Likewise, you can use the 'content_hash' value to check if the file data itself is different.

     

    The file metadata also contains 'client_modified' and 'server_modified' information indicating when the file changed.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!