title: Ruby on rails: Remote Upload A File Using AJAX
body: <p>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 ?</p>
  
  <p>I've tried this to no success:</p>
  
  <pre><code>&lt;% remote_form_for @song,:html =&gt; { :multipart =&gt; true }, :url =&gt; { :action =&gt; 'upload' } do |f| %&gt;
  </code></pre>