You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

gonzalogg's avatar
gonzalogg
New member | Level 2
8 years ago

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
    8 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.5,919 PostsLatest Activity: 2 days ago
334 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!