I have the file upload working, I have to place it outside my main
form.

Is there a way so I can have somewhere other than outside my form?

This below is all after the submit button:

<div id="file"> <%= render :partial => '/rsl/sitelist', :locals =>
{ :files => @files } %> </div>

<iframe name="upload_file" id="upload_file" style="width:1px;height:
1px;border:0px"></iframe>
<% form_for :file, :url => file_upload_path(:format => 'js'), :html =>
{ :multipart => true, :target => 'upload_file' } do %>
        <b>File:</b>&nbsp;
        <%= file_field_tag :upload %>&nbsp;
        <%= hidden_field_tag 'rfi', @rfi.id %>
        <%= submit_tag 'Upload File'  %>&nbsp;
<% end %>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to