MultipartUploader
extends AbstractMultipartUploader
in package
FinalYes
Multipart uploader implementation.
Table of Contents
Constants
- DEFAULT_CHECKSUM_CALCULATION_ALGORITHM = 'crc32'
- PART_MAX_NUM = 10000
- PART_MAX_SIZE = 5 * 1024 * 1024 * 1024
- PART_MIN_SIZE = 5 * 1024 * 1024
Properties
- $supportedAlgorithms : array<string|int, mixed>
Methods
- __construct() : mixed
- getCurrentSnapshot() : TransferProgressSnapshot|null
- Get the current progress snapshot.
- getParts() : array<string|int, mixed>
- getUploadId() : string|null
- promise() : PromiseInterface
- Returns a promise.
- upload() : UploadResult
- Sync upload method.
Constants
DEFAULT_CHECKSUM_CALCULATION_ALGORITHM
public
mixed
DEFAULT_CHECKSUM_CALCULATION_ALGORITHM
= 'crc32'
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
Properties
$supportedAlgorithms
public
static array<string|int, mixed>
$supportedAlgorithms
= ['ChecksumCRC32', 'ChecksumCRC32C', 'ChecksumCRC64NVME', 'ChecksumSHA1', 'ChecksumSHA256']
Methods
__construct()
public
__construct(S3ClientInterface $s3Client, array<string|int, mixed> $requestArgs, string|StreamInterface $source[, 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>
- $source : string|StreamInterface
- $config : array<string|int, mixed> = []
-
- target_part_size_bytes: (int, optional)
- request_checksum_calculation: (string, 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
Return values
PromiseInterfaceupload()
Sync upload method.
public
upload() : UploadResult