I want to execute a function after a file is finished.
I know there is "buckets . * . files . * . create" event, but it fires on every uploaded chunk of the file.
I want to only execute it once after the file is finished uploading.
Currently I check in my function if chunksUploaded == chunksTotal
Is there a specific event that i dont know of?
As per the docs, there's only a few events for Files :
buckets.*.files.*.create/update/delete.
I haven't really tried the events with file uploaded in chunks but it doesn't sound right to me. Create should usually be fired on complete file upload.
Maybe file an issue on Github.
Ya checking the chunks is the best option now
Recommended threads
- Migrate selfhosted 1.5 version to cloud
Hello everyone, is there any chance of migrating an old 1.5 selfhosted instance to the cloud? I tried with migrate but always encounter the error: "Couldnt load...
- Project paused despite active use — rest...
Hey team! My Appwrite Cloud project (685579e5000d78e67009) has been marked as paused due to inactivity, but it's actively used in production. I clicked the Rest...
- Dokploy
Hey, I'm new here. I'm selfhosting via Dokploy, no issues regarding databases but however sites and functions don't work as SSL certificates can't generate. Can...