Hi!

> cURL allow you to upload file from string buffer with CURLFORM_BUFFER
> and we should be able to do all the streams stuff with CURLFORM_STREAM
> and by modifying our CURLOPT_READFUNCTION.

CURLFORM_STREAM has one issue - you can only have one read function, but
you could have many uploaded files in the form. If we're willing to
accept the limitation that only one uploaded file can be a stream and
that you can not use both read function and stream file at the same
time, then it will work. Otherwise cURL API wouldn't let us to
distinguish between the functions.

I'll start with implementing it without stream/buffer support, and then
add it later.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to