ZF-6729: Add support for streaming file uploads to Amazon S3
Description
Currently the full file data need to be passed to putObject(), and can cause problems with PHP's memory limit with large files.
Specifying a file name or PHP steam from which the data is gradually copied (without putting it into a PHP string) when the HTTP request is actually made would be better. This most likely requires changes in Zend_HTTP_Client and its adapters as well. As for the Socket adapter, using stream_copy_to_stream() works perfect.
Slightly related to some elements of the comments on ZF-3758
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-07-05T03:28:42.000+0000
I am not familiar with S3 APi, but does this not work with the cURL adapter?
Posted by Kristof Coomans (cyberwolf) on 2009-07-05T03:55:49.000+0000
The PHP curl extensiion is not available on all PHP environments, so that is not a general solution.
Posted by Stanislav Malyshev (stas) on 2009-11-16T17:20:48.000+0000
Needs ZF-6736 for streaming, I'll take care of it.
Posted by Stanislav Malyshev (stas) on 2009-11-24T14:48:43.000+0000
Fixed in trunk, now S3 supports streaming in upload and download.
Posted by Jason Webster (jasonistaken) on 2009-12-31T00:48:21.000+0000
So, looks like this'll be in 1.10