Saurabh Purnaye
2008-Jan-07 06:43 UTC
the file uploading doesn''t work in remote_form_for tag
Hi all, Greetings, i have tried to upload a file through the remote_form_for tag, but not getting the file uploaded, and getting number of errors,,, Pls guide me in this directions Regards Saurabh Purnaye +919922907342 saurabh.purnaye-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- 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 -~----------~----~----~----~------~----~------~--~---
Ryan Bigg
2008-Jan-07 06:55 UTC
Re: the file uploading doesn''t work in remote_form_for tag
You can''t do file uploading using form_remote_tag or any of it''s variants. Javascript does not have access to your file system for security reasons. Try using an IFRAME to do the uploading instead. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Lee.Longmore-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Jan-07 13:36 UTC
Re: the file uploading doesn''t work in remote_form_for tag
Check this out for a clever iFRAME based approach which works :) http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent On 7 Jan, 06:55, "Ryan Bigg" <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You can''t do file uploading using form_remote_tag or any of it''s variants. > Javascript does not have access to your file system for security reasons. > > Try using an IFRAME to do the uploading instead.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
saurabh.purnaye-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jan-08 09:32 UTC
Re: the file uploading doesn''t work in remote_form_for tag
ok .. I m really thankful to you for your guidance and support!!! I will try by other ways.. Thanks again!!! Regards Saurabh Purnaye On Jan 7, 6:36 pm, "Lee.Longm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <Lee.Longm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Check this out for a clever iFRAME based approach which works :) > > http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-us... > > On 7 Jan, 06:55, "Ryan Bigg" <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > You can''t do file uploading using form_remote_tag or any of it''s variants. > > Javascript does not have access to your file system for security reasons. > > > Try using an IFRAME to do the uploading instead.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
zooxmusic
2008-Jan-14 18:38 UTC
Re: the file uploading doesn''t work in remote_form_for tag
Hi Saurabh, You can not use a multipart form with Ajax. Please look here to accomplish what you want http://kpumuk.info/ruby-on-rails/in-place-file-upload-with-ruby-on-rails/ Brian On Jan 7, 1:43 am, Saurabh Purnaye <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi all, > Greetings, > i have tried to upload a file through the remote_form_for tag, but not > getting the file uploaded, and getting number of errors,,, > Pls guide me in this directions > Regards > Saurabh Purnaye > +919922907342 > saurabh.purn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---