{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-php/issues/669","labels_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/669/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/669/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/669/events","html_url":"https://github.com/aws/aws-sdk-php/issues/669","id":92412383,"number":669,"title":"Multipart Upload reporting errors at end of upload in sdk v3","user":{"login":"mwoodring","id":12900663,"avatar_url":"https://avatars.githubusercontent.com/u/12900663?v=3","gravatar_id":"","url":"https://api.github.com/users/mwoodring","html_url":"https://github.com/mwoodring","followers_url":"https://api.github.com/users/mwoodring/followers","following_url":"https://api.github.com/users/mwoodring/following{/other_user}","gists_url":"https://api.github.com/users/mwoodring/gists{/gist_id}","starred_url":"https://api.github.com/users/mwoodring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwoodring/subscriptions","organizations_url":"https://api.github.com/users/mwoodring/orgs","repos_url":"https://api.github.com/users/mwoodring/repos","events_url":"https://api.github.com/users/mwoodring/events{/privacy}","received_events_url":"https://api.github.com/users/mwoodring/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-php/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-01T15:24:36Z","updated_at":"2015-07-02T14:45:21Z","closed_at":null,"body":"I am using the MultipartUploader function in the sdk v3. It appears that it uploads all the parts and at the end it goes through the catch exception code to report that multiple parts had errors during upload. Is there a way to stop the upload as soon as it gets an error so I can use the getState function to re-upload the bad part?\r\n\r\nHere is the code I using:\r\n\r\n\t$s3Uploader = new MultipartUploader ($s3Client, $fileHndl, $opt);\r\n\ttry {\r\n\t\t$response = $s3Uploader->upload ();\r\n\t\tif ($response->hasKey ('ObjectURL'))\r\n\t\t\t$awsURL = $response->get ('ObjectURL');\r\n\t\telse\r\n\t\t\tvar_dump ($response);\t// ** testing only\r\n\t}\r\n\tcatch (MultipartUploadException $e) {\r\n\t\tshowError ($e, $currFileName, \"Multi upload exception\");\r\n\r\n\t\t$params = $e->getState ()->getId ();\r\n\t\t$junk = $s3Client->abortMultipartUpload ($params);\r\n\t\t$sendOK = false;\r\n\t }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-php/issues/comments/118055475","html_url":"https://github.com/aws/aws-sdk-php/issues/669#issuecomment-118055475","issue_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/669","id":118055475,"user":{"login":"jeremeamia","id":107867,"avatar_url":"https://avatars.githubusercontent.com/u/107867?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremeamia","html_url":"https://github.com/jeremeamia","followers_url":"https://api.github.com/users/jeremeamia/followers","following_url":"https://api.github.com/users/jeremeamia/following{/other_user}","gists_url":"https://api.github.com/users/jeremeamia/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremeamia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremeamia/subscriptions","organizations_url":"https://api.github.com/users/jeremeamia/orgs","repos_url":"https://api.github.com/users/jeremeamia/repos","events_url":"https://api.github.com/users/jeremeamia/events{/privacy}","received_events_url":"https://api.github.com/users/jeremeamia/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T14:45:21Z","updated_at":"2015-07-02T14:45:21Z","body":"Can you show us what your code looks like now?"}}