Lists the completed parts of an in-progress multipart upload.
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
List all of the completed parts of a multipart upload.
// Instantiate the class $s3 = new AmazonS3(); $bucket = 'my-bucket' . strtolower($s3->key); $response = $s3->list_parts($bucket, 'movie.mp4', 'f_JM_zwhU37pj1tS.F2BXVWUJtGcNso1WEikZImjrBCYUbUQwNnOUwX.Z00O1QmKQXAjqQBD4BVZRGmEXAMPLE--', array( 'max-parts' => 10 )); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/s3.class.php | Toggle source view (22 lines) | View on GitHub