Displaying 1 result from an estimated 1 matches for "document_fil".
Did you mean:
document_file
2006 Jul 28
1
How do I get an original file name from an upload using file_field?
...ult.inspect) if result.kind_of?(Exception)
end
redirect_to :action => ''update_charges''
end
In the view:
<h2>Import CSV file</h2>
<%= start_form_tag( { :action => ''upload'' }, { :multipart => true } ) %>
<label for="document_file">Select .CSV file</label><br/>
<%= file_field ''document'', ''file'' %>
<%= submit_tag ''Upload'' %>
<%= end_form_tag %>
--
View this message in context: http://www.nabble.com/How-do-I-get-an-original-...