2008年12月29日星期一

Re: [fw-mvc] File uploads question (how to avoid file on discs)

Ok, well I didn't plan this actually ;-)

Thanks for you reply, and all the guys who took time to write about this issue.
JA.


From: Matthew Weier O'Phinney <matthew@zend.com>
To: fw-mvc@lists.zend.com
Sent: Monday, December 29, 2008 2:21:02 PM
Subject: Re: [fw-mvc] File uploads question (how to avoid file on discs)

-- John Antony Riga <ja.riga@yahoo.com> wrote
(on Monday, 29 December 2008, 12:31 AM -0800):
> I'm discovering the file upload feature provided by the framework. I'm
> wondering is there a way not to put the uploaded file on disc but to keep it in
> memory until it's transfered to the databases ?
> I'd rather use that solution then to transfert the elements on discs.

Actually, no; PHP's file upload mechanism writes a temporary file during
upload. The only way you would be able to do differently is to write
your own C extension for PHP.

--
Matthew Weier O'Phinney
Software Architect      | matthew@zend.com
Zend Framework          | http://framework.zend.com/

没有评论: