{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/441","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/441/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/441/events","html_url":"https://github.com/aws/aws-sdk-js/issues/441","id":51989917,"number":441,"title":"[S3 Docs] .upload / ManagedUpload does not document how to abort upload","user":{"login":"mfn","id":87493,"avatar_url":"https://avatars.githubusercontent.com/u/87493?v=3","gravatar_id":"","url":"https://api.github.com/users/mfn","html_url":"https://github.com/mfn","followers_url":"https://api.github.com/users/mfn/followers","following_url":"https://api.github.com/users/mfn/following{/other_user}","gists_url":"https://api.github.com/users/mfn/gists{/gist_id}","starred_url":"https://api.github.com/users/mfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfn/subscriptions","organizations_url":"https://api.github.com/users/mfn/orgs","repos_url":"https://api.github.com/users/mfn/repos","events_url":"https://api.github.com/users/mfn/events{/privacy}","received_events_url":"https://api.github.com/users/mfn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-js/labels/Documentation","name":"Documentation","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-15T14:12:24Z","updated_at":"2015-10-17T19:42:16Z","closed_at":"2014-12-15T20:40:24Z","body":"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.\r\n\r\nThrough 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:\r\n```JS\r\nvar manager = bucket.upload(...);\r\nbucket.send(function(err,data)) {\r\n  if (!err && !data) {\r\n    // user aborted\r\n  }\r\n}\r\n\r\n// somewhere else\r\nfunction cancelUpload() {\r\n  manager.cleanup();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/comments/148947044","html_url":"https://github.com/aws/aws-sdk-js/issues/441#issuecomment-148947044","issue_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/441","id":148947044,"user":{"login":"onassar","id":612938,"avatar_url":"https://avatars.githubusercontent.com/u/612938?v=3","gravatar_id":"","url":"https://api.github.com/users/onassar","html_url":"https://github.com/onassar","followers_url":"https://api.github.com/users/onassar/followers","following_url":"https://api.github.com/users/onassar/following{/other_user}","gists_url":"https://api.github.com/users/onassar/gists{/gist_id}","starred_url":"https://api.github.com/users/onassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onassar/subscriptions","organizations_url":"https://api.github.com/users/onassar/orgs","repos_url":"https://api.github.com/users/onassar/repos","events_url":"https://api.github.com/users/onassar/events{/privacy}","received_events_url":"https://api.github.com/users/onassar/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T19:42:16Z","updated_at":"2015-10-17T19:42:16Z","body":"@lsegal is abort currently supported in browser version of sdk? Calling it seems to go through, but the upload is continuing."}}