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
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...
- tablesDB.updateRow() properly updates co...
I did not thoroughly investigate, but the issue does not seem to stem from actual permission errors (despite the error message). My tables have table-level perm...