Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Coolioo
5 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
1 Reply
- Greg-DB5 years ago
Dropbox Community Moderator
[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 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!