Ruby on rails: Remote Upload A File Using AJAX
ajax, ruby-on-rails
Solution
If you're using Rails 3, try the Remotipart gem. It makes AJAX style file uploads relatively painless.
http://rubygems.org/gems/remotipart
http://github.com/leppert/remotipart
Problem
I've successfully uploaded a file using PUT and html, but is there a way to upload a file in a ajax remote_form_for ? I've tried this to no success: ``` <% remote_form_for @song,:html => { :multipart => true }, :url => { :action => 'upload' } do |f| %> ```