You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Through trial and error I found this pattern to "work for me"; but I'm neither sure if it's a good idea nor if it's supposed to work that way:
varmanager=bucket.upload(...);bucket.send(function(err,data)){if(!err&&!data){// user aborted}}// somewhere elsefunctioncancelUpload(){manager.cleanup();}
The text was updated successfully, but these errors were encountered:
You should not use cleanup() as that is a private method of the ManagedUpload class and may change. The correct method will be (edit) manager.abort(), similar to the Request.abort method, but this has not yet been exposed.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
Sep 29, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The documentation at http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3/ManagedUpload.html does not describe how to actually abort an upload which is in progress.
Through trial and error I found this pattern to "work for me"; but I'm neither sure if it's a good idea nor if it's supposed to work that way:
The text was updated successfully, but these errors were encountered: