Class UploadSyncBuilder
- Aws\S3\Sync\AbstractSyncBuilder
-
Aws\S3\Sync\UploadSyncBuilder
Methods summary
-
publicuploadFromDirectory ( string $path )Set the path that contains files to recursively upload to Amazon S3
-
publicuploadFromGlob ( string $glob )Set a glob expression that will match files to upload to Amazon S3
-
publicsetAcl ( string $acl )Set a canned ACL to apply to each uploaded object
-
publicsetAcp ( Aws\S3\Model\Acp $acp )Set an Access Control Policy to apply to each uploaded object
-
publicsetMultipartUploadSize ( int $size )Set the multipart upload size threshold. When the size of a file exceeds this value, the file will be uploaded using a multipart upload.
-
protectedspecificBuild ( )Hook to implement in subclasses
-
protectedaddCustomParamListener ( Guzzle\Common\HasDispatcherInterface $sync )Add the custom param listener to a transfer object
-
protectedgetTargetIterator ( ) -
protectedgetDefaultSourceConverter ( ) -
protectedgetDefaultTargetConverter ( ) -
protectedaddDebugListener ( Aws\S3\Sync\AbstractSync $sync, resource $resource )Add a listener to the sync object to output debug information while transferring
Methods detail
Set the path that contains files to recursively upload to Amazon S3
Parameters
- $path
string
$path Path that contains files to upload
Returns
mixed$this
Set a glob expression that will match files to upload to Amazon S3
Parameters
- $glob
string
$glob Glob expression
Returns
mixed$this
Link
Set a canned ACL to apply to each uploaded object
Parameters
- $acl
string
$acl Canned ACL for each upload
Returns
mixed$this
Set an Access Control Policy to apply to each uploaded object
Parameters
- $acp
Aws\S3\Model\Acp
$acp Access control policy
Returns
mixed$this
Set the multipart upload size threshold. When the size of a file exceeds this value, the file will be uploaded using a multipart upload.
Parameters
- $size
integer
$size Size threshold
Returns
mixed$this
Add the custom param listener to a transfer object
Parameters
- $sync
Guzzle\Common\HasDispatcherInterface
$sync
Overrides
Add a listener to the sync object to output debug information while transferring
Parameters
- $sync
Aws\S3\Sync\AbstractSync
$sync Sync object to listen to- $resource
resource
$resource Where to write debug messages
Methods inherited from Aws\S3\Sync\AbstractSyncBuilder
addRegexFilter(),
assertFileIteratorSet(),
build(),
createS3Iterator(),
enableDebugOutput(),
filterIterator(),
force(),
getInstance(),
setBaseDir(),
setBucket(),
setClient(),
setConcurrency(),
setDelimiter(),
setKeyPrefix(),
setOperationParams(),
setSourceFilenameConverter(),
setSourceIterator(),
setTargetFilenameConverter(),
validateRequirements()
Magic methods summary
Properties summary
protected
string| |
$acp |
#
Access control policy to set on each object |
protected
integer
|
$multipartUploadSize |
Properties inherited from Aws\S3\Sync\AbstractSyncBuilder
$baseDir,
$bucket,
$client,
$concurrency,
$debug,
$delimiter,
$forcing,
$keyPrefix,
$params,
$sourceConverter,
$sourceIterator,
$targetConverter