Reputation: 18318
<h4>Upload CSV File:</h4>
<%= form_tag(import_patients_path, :method =>'post', :multipart => true) %>
<%= file_field_tag 'csvfile' %>
<br />
<%= submit_tag "Upload CSV Data" %>
</form>
From the controller I simply need to get the file as a string. Is there an easy way to do this? (I don't need to save the file anywhere)
Upvotes: 4
Views: 1720