hi
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
<table border="0" align="center">
<tr>
<td>
<label for="dump_file">
Select a CSV File :
</label>
</td>
<td >
<%= f.file_field :file -%>
</td>
</tr>
<tr><td></td><td></td></tr>
<tr>
<td colspan='2' align="center">
<%= submit_tag 'Submit' -%>
</td>
</tr>
</table>
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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---