AbstractMultipartUploader
in package
implements
PromisorInterface
AbstractYes
Abstract base class for multipart operations
Table of Contents
Interfaces
- PromisorInterface
- Interface used with classes that return a promise.
Constants
- PART_MAX_NUM = 10000
- PART_MAX_SIZE = 5 * 1024 * 1024 * 1024
- PART_MIN_SIZE = 5 * 1024 * 1024
Methods
- __construct() : mixed
- getCurrentSnapshot() : TransferProgressSnapshot|null
- Get the current progress snapshot.
- getParts() : array<string|int, mixed>
- getUploadId() : string|null
- promise() : PromiseInterface
- Returns a promise.
Constants
PART_MAX_NUM
public
mixed
PART_MAX_NUM
= 10000
PART_MAX_SIZE
public
mixed
PART_MAX_SIZE
= 5 * 1024 * 1024 * 1024
PART_MIN_SIZE
public
mixed
PART_MIN_SIZE
= 5 * 1024 * 1024
Methods
__construct()
public
__construct(S3ClientInterface $s3Client, array<string|int, mixed> $requestArgs[, array<string|int, mixed> $config = [] ][, string|null $uploadId = null ][, array<string|int, mixed> $parts = [] ][, TransferProgressSnapshot|null $currentSnapshot = null ][, TransferListenerNotifier|null $listenerNotifier = null ]) : mixed
Parameters
- $s3Client : S3ClientInterface
- $requestArgs : array<string|int, mixed>
- $config : array<string|int, mixed> = []
-
- target_part_size_bytes: (int, optional)
- concurrency: (int, optional)
- $uploadId : string|null = null
- $parts : array<string|int, mixed> = []
- $currentSnapshot : TransferProgressSnapshot|null = null
- $listenerNotifier : TransferListenerNotifier|null = null
getCurrentSnapshot()
Get the current progress snapshot.
public
getCurrentSnapshot() : TransferProgressSnapshot|null
Return values
TransferProgressSnapshot|nullgetParts()
public
getParts() : array<string|int, mixed>
Return values
array<string|int, mixed>getUploadId()
public
getUploadId() : string|null
Return values
string|nullpromise()
Returns a promise.
public
promise() : PromiseInterface