[Mongrel] File Upload without the Temp File Copy
stephanwehner at gmail.com
Tue Nov 18 12:19:06 EST 2008
On Tue, Nov 18, 2008 at 8:37 AM, Alexey Petrushin <lists at ruby-forum.com> wrote:
> Michael D'Auria wrote:
>> Is there a reason why you are avoiding the filesystem for storage?
> Yes, i'm using abstract storage interface, that can be implemented as
> local file system, remote file system, distributed file system,
> database, cache.
> In this case the temp file is not needed. I can just switch the input
> stream to it's destination without lost performance on not needed IO
You could look at the Ruby code that produces the temporary files, and
It is in method CGI::QueryExtension#read_multipart in cgi.rb
(/usr/lib/ruby/1.8/cgi.rb on my machine)
> Posted via http://www.ruby-forum.com/.
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
-> http://stephansmap.org -- blog.stephansmap.org
-> http://loggingit.com -- blog.loggingit.com
More information about the Mongrel-users