<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 just need to get the file as a string. Is there an easy way to do this? (I do not need to save the file anywhere)
source share