odysseyscience / react-s3-uploader

React component that renders an <input type="file"/> and automatically uploads to an S3 bucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

way to Abort current uploading?

harvinder-ss opened this issue · comments

Hi, I have a situation where I want the user to abort the abort the current uploading file. Is there any way to do this in this component ?

Appreciate your quick response!

Thanks.

Just to be more clear, I need way to cancel the current upload after it has started and may be 50% or 90% uploaded to s3.

@harvinder-ss There exists an abort method that you can call if you save off a ref of the component. You'll need to bring your own UI though, as this library only renders an <input type="file"/>. Re-open if you need more guidance.

Thanks for your response. I have done it already using the same way. :)