Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails AJAX file upload

Is there any easy way how to handle AJAX file upload in Rails? e.g. with a plugin

like image 815
Jakub Arnold Avatar asked Sep 04 '09 13:09

Jakub Arnold


2 Answers

If you're using Rails 3, I've written a plugin that makes AJAX style file uploads relatively trivial to implement.

http://rubygems.org/gems/remotipart

like image 75
leppert Avatar answered Nov 12 '22 23:11

leppert


JQuery File Upload is very active and versatile file upload widget project.

See the demo here: http://blueimp.github.com/jQuery-File-Upload/

Here's a Gem: http://rubygems.org/gems/jquery.fileupload-rails

The wiki also has Rails examples: https://github.com/blueimp/jQuery-File-Upload/wiki

like image 4
Dan Sandland Avatar answered Nov 13 '22 01:11

Dan Sandland