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
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` I’m encounter...
- Issues with executor in Appwrite 1.9.0
Hi, I’ve recently did a fresh install of appwrite 1.9.0 self hosted and when I run a function, it just waits indefinite This is the error from the log: [Er...
- Issues with Appwrite and networking
Hi, I’ve been having some real issues with hosting appwrite, I have it running with the hostname ‘localhost’ and I used to also be able to use the machines IP ...