简体   繁体   中英

Amazon multi-part upload using Gaufrette bundle

Is there a way to use a Gaufrette file system object for multi-part uploading if we have an Amazon S3 adapter. I read something about the streamWrapper but I don't know if that's the way to go for it and if it's working with S3 adapeter or not.

The S3 Gaufrette adapter does not use multipart uploads (see https://github.com/KnpLabs/Gaufrette/blob/master/src/Gaufrette/Adapter/AwsS3.php#L135 ). However, you could possibly extend the adapter class and rewrite the write() to use the AWS SDK's upload() method (see http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.S3Client.html#_upload ) which would support multipart uploads.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM