1

如果我们有 Amazon S3 适配器,有没有办法使用 Gaufrette 文件系统对象进行分段上传。我读了一些关于 streamWrapper 的东西,但我不知道这是否是可行的方法,以及它是否与 S3 适配器一起工作。

4

1 回答 1

1

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.

于 2014-01-20T18:29:51.173 回答