Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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 Dropbox.
Can you help me? Maybe i could do it through de API?
Thanks in advance.
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.
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.
Hi there!
If you need more help you can view your support options (expected response time for a 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!