I am trying to get the “Full path of a uploaded file” . In my view I am
using file_field to upload a file. Below is my view code
|Select a CSV File :||<%= f.file_field :file -%>|
|<%= submit_tag 'Submit' -%>|
In a controller class when I try params[:dump][:file].original_filename
it gives me only the filename of file.
I need to parse the uploaded file(.csv file) in my controller. Can you
please let me know how to get the full path of a file