Documentation

MultipartUploadingTrait

Table of Contents

getStateFromService()  : UploadState
Creates an UploadState object for a multipart upload by querying the service for the specified upload's information.
determinePartSize()  : mixed
extractETag()  : mixed
getCompleteParams()  : mixed
getConfig()  : array<string|int, mixed>
getInitiateParams()  : mixed
getSourceMimeType()  : string|null
getSourceSize()  : int
getState()  : UploadState
handleResult()  : mixed

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) : 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.

Return values
UploadState

getConfig()

protected abstract getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSourceMimeType()

protected abstract getSourceMimeType() : string|null
Return values
string|null

Search results