0
So I need to upload files via AJAX...
I have both parts working seperately....
Upload View:
<%= form_tag('upload_zip', :multipart => true) do %>
<p>
File:<br />
<%= file_field_tag 'zip_file' %><br />
</p>
<p>
<%= submit_tag "Upload ZIP/TAR.GZ" %>
</p>
<% end %>
And else where I have are Remote form_tag working...
<%= form_tag url_for(:action => :add_tracks), :remote => true do %>
.....
<%= submit_tag "Submit", :disable_with => "Processing..." %>
Both of these work fine but when I try to add :remote => true I can't seem to get it to work. Most of the syntaxes seem to not get the file name and try to upload nil.