Displaying 1 result from an estimated 1 matches for "uploaded_file_file".
2006 May 12
1
Uploading a file with form_remote_tag problem.
params[uploaded_file] is not recognised when i try form_remote_tag like
this:
<%= form_remote_tag :url=>{:action => "save_file"} ,:html=>{:multipart
=> true} <%=text_field_tag "name"%>
<input type="file" id="uploaded_file_file"
name="uploaded_file[file]"/>
<input type="submit" value="Upload" />
<%= end_form_tag %>
It works when i do a normal submit like so:
<%= form_tag( {:action => ''save_file''}, :multipart => true) %>
%>
<%=tex...