Rank 4: Virtual Machine
buckets.bucketid.files.*.create Does the file upload event fire up on chunks??? My logic relies if the file is fully uploaded then do manipulations with it, but i see a ton of events fired up when its not even done.
Votes
0
Replies
11
Participants
Unknown
Messages
12
Rank 4: Virtual Machine
buckets.bucketid.files.*.create Does the file upload event fire up on chunks??? My logic relies if the file is fully uploaded then do manipulations with it, but i see a ton of events fired up when its not even done.
Rank 4: Virtual Machine
it works perfectly fine with smaller files, but i got 1mil email lists uploaded that are about 27mb in size..
Yep. In the function you can check if it's the last chunk
Rank 4: Virtual Machine
how would one do that?
Look at the event data
Rank 4: Virtual Machine
can you point me to an example if you know one ?
The payload of the event is always in the event data. If you're creating an account, you get the user. If you're creating a document, you get the document. If you're creating a file, you get the file
Rank 4: Virtual Machine
man i wish it was more easy to debug payloads here
Look at the response of the API: https://appwrite.io/docs/references/cloud/client-web/storage#createFile
Rank 4: Virtual Machine
const { $createdAt, $updatedAt, $permissions, signature, chunksTotal, chunksUploaded } = body;
Rank 4: Virtual Machine
i guess we check if chunksTotal == chunksUploaded
Rank 4: Virtual Machine
Thanks @Steven will look in to that