MultipartUploadingTrait
Table of Contents
Methods
- getStateFromService() : UploadState
- Creates an UploadState object for a multipart upload by querying the service for the specified upload's information.
Methods
getStateFromService()
Creates an UploadState object for a multipart upload by querying the service for the specified upload's information.
public
static getStateFromService(S3ClientInterface $client, string $bucket, string $key, string $uploadId[, array<string|int, mixed> $config = [] ]) : UploadState
Parameters
- $client : S3ClientInterface
-
S3Client used for the upload.
- $bucket : string
-
Bucket for the multipart upload.
- $key : string
-
Object key for the multipart upload.
- $uploadId : string
-
Upload ID for the multipart upload.
- $config : array<string|int, mixed> = []
-
Optional config to retain on the state. Pass the directive keys (
metadata_directive,tags_directive,annotations_directive) the original copy was launched with so a resumedMultipartCopyreplays Phase 3 with the same behavior. The caller can also override directives on the resume by passing them again to theMultipartCopyconstructor.