Gaufrette
Gaufrette copied to clipboard
AwsS3 Multipart Uploads
This is a modification of AwsS3 adapter to allow multipart uploads when files are bigger than a certain size.
Size limits / part size are passed as options to the adapter and set to defaults, respectively 5Go and 5Mo. 5Go being the maximum size AWS S3 accepts in a single upload, and 5Mo the minimum part size.
Limitations : won't work with string content, you have to pass a resource handle otherwise write() will return false. We may use InMemoryStream to bypass this limitation ?
PHP7.1 fails on docker image, not sure why. May need some help on this.
Hope I did not forget anything :)
Can you rebase on master (to consider the merge of #514 ), and update your test please (note the changes)?
Done.
Fix : Use Amazon's size limit for string upload and option specific limit for resource handle to allow 5Go upload no matter what. Added a test case to cover that.
Hello, some news here ? We would like this PR to get rid of our custom repo. :)
Hi, are there plans to merge this? I'm having troubles with this.
Thanks!
Hi guys, Is this possible to merge this pull request ? Need it!! Thank you
@NiR- we would really appreciate your review on this since @nicolasmure approved it some time ago :)
thank you
Hello, any idea when this would be merged? Love the concept, would release some workarounds form my project.
Btw. Version 0.10.0 will support AsyncAws and that switches to multipart uploads automatically.
It will not have a memory foot print that is related to the part size.