Zend Framework

Add support for streaming file uploads to Amazon S3

Details

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

Issue Links

Activity

Hide
Benjamin Eberlei added a comment -

I am not familiar with S3 APi, but does this not work with the cURL adapter?

Show
Benjamin Eberlei added a comment - I am not familiar with S3 APi, but does this not work with the cURL adapter?
Hide
Kristof Coomans added a comment -

The PHP curl extensiion is not available on all PHP environments, so that is not a general solution.

Show
Kristof Coomans added a comment - The PHP curl extensiion is not available on all PHP environments, so that is not a general solution.
Hide
Stanislav Malyshev added a comment -

Needs ZF-6736 for streaming, I'll take care of it.

Show
Stanislav Malyshev added a comment - Needs ZF-6736 for streaming, I'll take care of it.
Hide
Stanislav Malyshev added a comment -

Fixed in trunk, now S3 supports streaming in upload and download.

Show
Stanislav Malyshev added a comment - Fixed in trunk, now S3 supports streaming in upload and download.
Hide
Jason Webster added a comment -

So, looks like this'll be in 1.10

Show
Jason Webster added a comment - So, looks like this'll be in 1.10

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: