Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)

List Multipart Uploads Using the Low-Level AWS SDK for PHP API

This topic guides you through using the low-level API classes from the AWS SDK for PHP to list all in-progress multipart uploads on a bucket.


This topic assumes that you are already following the instructions for Using the AWS SDK for PHP and Running PHP Examples and have the AWS SDK for PHP properly installed.

PHP SDK Low-Level API Multipart Uploads Listing Process


Create an instance of an Amazon S3 client by using the Aws\S3\S3Client class factory() method.


Execute the Aws\S3\S3Client::listMultipartUploads() method by providing a bucket name. The method returns all of the in-progress multipart uploads on the specified bucket.

The following PHP code sample demonstrates listing all in-progress multipart uploads on a bucket.

use Aws\S3\S3Client; $s3 = S3Client::factory(); $bucket = '*** Your Bucket Name ***'; $result = $s3->listMultipartUploads(array('Bucket' => $bucket)); print_r($result->toArray());

Related Resources

On this page: