Aborts an in-progress multipart upload. This operation cannot be reversed.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the bucket to use. |
|
|
Required |
The file name for the object. |
|
|
Required |
The upload ID identifying the multipart upload whose parts are being listed. The upload ID is retrieved from a call to |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Abort a multipart upload. This will delete all completed parts for this multipart upload.
// Instantiate the class $s3 = new AmazonS3(); $bucket = 'my-bucket' . strtolower($s3->key); // Abort an in-progress multipart upload $response = $s3->abort_multipart_upload($bucket, 'tv_episode.mp4', 'f_JM_zwhU37pj1tS.F2BXVWUJtGcNso1WEikZImjrBCYUbUQwNnOUwX.Z00O1QmKQXAjqQBD4BVZRGmEXAMPLE--'); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/s3.class.php | Toggle source view (12 lines) | View on GitHub