kqito / use-tus

React hooks for resumable file uploads using tus
https://kqito.github.io/use-tus/?path=/story/usetus--basic
MIT License
104 stars 8 forks source link

Request for termination support #51

Closed dkmorgan closed 3 months ago

dkmorgan commented 3 months ago

Would it be possible to support the shouldTerminate argument in abort()? (Reference: tus-js-client) I cannot currently terminate the upload and delete the resource on the server.

kqito commented 3 months ago

Thank you for your request! It seems like there is a bug in use-tus due to the failure to pass the shouldTerminate argument to the abort function.

I'll address this problem shortly.

kqito commented 3 months ago

This issue has been fixed in version v0.8.2. Could you please try using the new release?

dkmorgan commented 3 months ago

@kqito

I tried out v0.8.2. abort(true) now aborts the upload in progress and is followed by a DELETE request to terminate the upload.

Thank you so much for such a prompt fix!