Hi I''m trying to implement file upload on rails using HTTP PUT. Is there a way to handle de input stream _before_ it gets parsed? What I mean to do is start writing the file somewhere just as data arrives, in order to be able to resume failed uploads Thanks -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
cremes.devlist-ee4meeAH724@public.gmane.org
2006-Nov-30 18:40 UTC
Re: Handling HTTP PUT stream
On Thursday, November 30, 2006, at 12:19PM, "Tulsi Das" <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> >Hi > >I''m trying to implement file upload on rails using HTTP PUT. Is there a >way to handle de input stream _before_ it gets parsed? > >What I mean to do is start writing the file somewhere just as data >arrives, in order to be able to resume failed uploadsTulsi, there is no way to trap this information in Rails without lots of ugly hacking. I have the same goal as you so perhaps we can work together on this. I''m currently looking at modifying Mongrel to handle this. It makes sense to put this support directly into the HTTP server. I can share my ideas with you if you are interested. Email me offline and we can discuss it. cr --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---