Re: Uploading large files with HTTP_Request class
| From: | tamouse mailing lists | Date: | Thu, 31 May 2012 20:21:35 +0000 |
| Subject: | Re: Uploading large files with HTTP_Request class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318063@lists.php.net to get a copy of this message | ||
On Thu, May 31, 2012 at 5:28 AM, Voß, Marko <Marko.Voss@fiz-karlsruhe.de> wrote:
> I need to perform uploading of large files using the HTTP_Request class:
> http://pear.php.net/manual/package.http.http-request.php
> The HTTP_Request class support the following functions:
> setBody() and addFile()
Reading the above, and checking on the documentation, I notice an inconsistency.
I only find the setBody() method in HTTP_Request2, while addFile() is
in HTTP_Request. The correct method for adding files in HTTP_Request2
is addUpload() (which still may not work given the limitations of the
upstream server).