Class ObjectUploader
- Aws\S3\ObjectUploader implements GuzzleHttp\Promise\PromisorInterface
- Namespace: Aws\S3
- Located at S3/ObjectUploader.php
Uploads an object to S3, using a PutObject command or a multipart upload as appropriate.
Methods Summary
Methods Details
__construct (
Aws\S3\S3ClientInterface
$client,
string
$bucket,
string
$key,
mixed
$body,
string
$acl = 'private',
array
$options = []
)
Parameters
Aws\S3\S3ClientInterface |
$client | The S3 Client used to execute the upload command(s). |
string | $bucket | Bucket to upload the object, or an S3 access point ARN. |
string | $key | Key of the object. |
mixed | $body | Object data to upload. Can be a StreamInterface, PHP stream resource, or a string of data to upload. |
string | $acl = 'private' | ACL to apply to the copy (default: private). |
array | $options = [] | Options used to configure the copy process. Options passed in through 'params' are added to the sub command(s). |
GuzzleHttp\Promise\PromiseInterface
promise (
)
upload ( )
Constants summary
integer |
DEFAULT_MULTIPART_THRESHOLD
|
#
16777216
|