Closed guillaumemach closed 11 months ago
Hello @guillaumemach onAfterUpload
is purely async and happens after upload fully recieved on the server. I'd suggest to look for other hooks in order to complete your goals, like onBeforeUpload
which can get used on the client as well
Hello @dr-dimitru ,
Thanks for your reply. Which hook would you recommend to perform checks on the uplaoded file ? We tried onUploaded, but same problem nothing returns to the client side events (or maybe we did something wrong).
Bests
@guillaumemach for fully uploaded file the only option is onAfterUpload
, just don't expect events on the client, I'm suggesting to:
verified
or similar option to meta
meta.verified
onAfterUpload
and update meta.verified
meta.verified
@dr-dimitru ok thanks a lot.
Feel free to reopen it in case if the issue is still persists on your end.
Hi all,
I'm having an issue:
We are trying to perform checks in the settings.onAfterUpload callback (if I understood correctly it is only server side). If one check fails we want to return an error, and catch it in the "end" event (client side).
Is there a way to do this ? Is this a bug ?
Meteor@2.12 ostrio:files@2.3.3
Thanks a lot for your help,
Guillaume