How to abort/stop an Amazon AWS s3 upload in progress


I am using the javascript version of the aws sdk to upload a file to an amazon s3 bucket.

code :

While the file is uploading parts of the file successfully and is still in progress, I want to abort/stop the file upload.

I tried:

Thanks for help.


Found the solution :

then for abort the request:

Leave a Reply