Kevin Bosak <[EMAIL PROTECTED]> writes:

> I too am having issues with file uploads using mod_perl2.  I've gotten
> the beta of Apache::Request but it looks like from this thread that
> there's not yet a way to retrieve the uploaded file.  Is this true?

No, it's not true at all.  If you don't need to read the contents of the
upload, but just need to store it in a file somewhere, use 
$upload->link("/path/to/local/file"). If you do need to read the 
contents, use the APR::Brigade API on $upload->bb. A future version 
of Apache::Request may have include convenience methods (like slurp(), 
etc.), but you can certainly get at the uploaded file using the current 
version.

The brigade API is a big performance-win for libapreq2, since it allows 
us to use a zero-copy design on file uploads until the file gets too 
big to store in memory.  The size limit is currently 256K, but the size
will be configurable in future versions.

-- 
Joe Schaefer


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to