Forum: Ruby on Rails file_tag and full file path

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
BoBKilla (Guest)
on 2009-03-13 12:02
(Received via mailing list)
I am using a file_field_tag and when I am getting the value on the
controller, it only gives me the file name and not the file path. I
really need the full file path, how can i do it ? I'll give you a part
of my code.

<form action= "/entrees/lireXML" >
<label>Fichier:</label><%= file_field_tag "xml_file" %>
    <%= submit_tag "Envoyer" %>

 def lireXML
  load_file = params[:xml_file]
remplieBD ( load_file )
    redirect_to (entrees_url)
BoBKilla (Guest)
on 2009-03-13 12:39
(Received via mailing list)
actually i found out that it works with internet explorer but not with
firefox ! Anyone know how to manage to make it work on firefox
please ?
This topic is locked and can not be replied to.