Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Abort a Multipart Upload

You can abort a multipart upload that is in progress by calling the AmazonS3::abort_multipart_upload() method. This method deletes any parts that were uploaded to S3 and frees up the resources. You must provide the upload ID, bucket name, and the object key to this method. The following PHP code sample demonstrates how you can abort a multipart upload in progress.

$s3 = new AmazonS3();
$response = $s3->abort_multipart_upload($bucket, $keyname, $upload_id);
print_r($response);