You are looking too deeply into your app stack. This kind of file uploads needs to be handled by the webserver itself. All modern webservers have a way to stream files from a user onto the disc (this way you don't have memory issues as only the current chunk is in memory at any give time) and then notify your app once the upload is completed.
For nginx, you want to use the nginx_upload_module: http://www.grid.net.ru/nginx/upload.en.html I'm not sure right off hand how you'd configure Apache for this. Hope that helps. Jason On Jul 22, 2010, at 7:38 AM, Qin Qin wrote: > i want to upload a very very very large file(>=4G),i have googled and > tested two days,but still not found a better solution. > at first ,i just find some rails plugins ,such as Acts As > Attachment,Attachment Fu,File Column,but they seemingly just deal with > small file,just like image. > then i find some other ways,using merb, Mongrel,Mongrel Handlers , > Sinatra Rack Metal ,Mod_Rails aka Passenger and so on . > i test it using webrick and mongrel,when i upload a file which size is > 700M,the webrick die,and the mongrel cost 56587ms to complete. > because of limiting of the test environment,i never test others. i > didn't known which is better? > can anyone help me ,give me suggesion? > tks! > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.