On Wednesday, May 8, 2013 10:40:32 AM UTC+1, Varun Jain wrote:
>
> I am trying to upload an image in RAILS 3 using AJAX form submission , 
> this is my code : 
>
> You can't upload files over ajax (at least not without using the HTML5 
File apis, which you may not be able to rely on). The usual trick is to do 
the upload in a hidden iframe so that it doesn't block the 'main' page.

Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/4Gw_yZHJvdMJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to