One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Coolioo
4 years agoNew member | Level 2
Dropbox API FileMetadata - How to determine a file is a new file added to Dropbox or a file update?
Hi,
I'm using DropBox API and WebHook to monitor the file changes on DropBox server side. When new files are added, or existing files are updated, my app will be notified by WebHook, and I can call /list_folder to get list of FileMetadata to see file changes.
But the questions is, in the FileMetadadta, how can I know this file is a new file added to DropBox, or it's a existing file that are updated? My App only needs to process the files that are update or changed. I cannot see any data fields in the FileMetadadta to indicate whether this file is a new file or a update to an existing file.
Please advise how to achieve this.
Thank you
- Greg-DB
Dropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/68294541/dropbox-api-filemetadata-how-to-determine-a-file-is-a-new-file-added-to-dropbo ]
Without comparing with your previously retrieved metadata for the file (i.e., to see if there was any), the Dropbox Metadata information doesn't offer a way to determine if the file is new or not. I'll pass this along as a feature request, but I can't promise if or when that might be implemented.
You could call /2/files/list_revisions to see the file version history, but that would require an extra API call for each file you want to check.
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 days ago
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!