Is there a way to cancel an upload with the JS client? I see some potential references to canceling uploads in the react examples, but I don't see any methods on the JS library/reference: https://docs.nhost.io/reference/javascript/storage
Last active 3 months ago
5 replies
9 views
- SH
Is there a way to cancel an upload with the JS client? I see some potential references to canceling uploads in the react examples, but I don't see any methods on the JS library/reference:
https://docs.nhost.io/reference/javascript/storage - EL
I think that cancel method is only available in React. Please, correct me if I'm wrong @Pilou.
Maybe we can create an issue in GitHub to add support for canceling uploads with the js client too?
- PI
Only in React and Vue yes.
It will be a tricky concept to introduce in the js client without changing theupload
method signature as promises can't be cancelled - EL
If it helps, I think it's fine to change the
upload
method signature as long as we versioning it correctly. - SH
is it the same for upload progress? the dart client has a way to get progress and it seems like possibly react and others clients do too but not the bare js client?
Last active 3 months ago
5 replies
9 views