Webhook confusion; FILE.UPLOADED vs FILE.MOVED
AnsweredHi,
I'm using folder webhook events, and there are the following:
FILE.UPLOADED - A file is uploaded or moved to this folder.
FILE.MOVED - A file is moved from one folder to another.
This is a little confusing. What I need to be able to tell is when a new file has been uploaded vs when a file has simply been moved. But right now when I manually move a file, it triggers both webhooks.
So regarding the FILE.UPLOADED webhook, is there a way to tell from the response whether this is being triggered by a new file upload, or by a file being moved?! That way I can ignore if it related to it being moved, as I know I'll get another webhook response for FILE.MOVED
Is it the case that if its a new file, it will always have a "sequenceI_id" equal to 0 perhaps?
I hope that makes sense! Note that in my opinion it'd be much better if there were just one hook for moved, and another for uploaded.
Thanks!
Please sign in to leave a comment.
Comments
1 comment