# File\_tag and full file path

**URL:** <https://www.ruby-forum.com/t/file-tag-and-full-file-path/162746>\
**Category:** Rails\
**Created:** [March 13, 2009, 11:02am UTC](https://www.ruby-forum.com/t/file-tag-and-full-file-path/162746 "2009-03-13T11:02:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoBKilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/779978/32.png) [@BoBKilla](https://www.ruby-forum.com/u/BoBKilla)\
**Post date:** [March 13, 2009, 11:02am UTC](https://www.ruby-forum.com/t/file-tag-and-full-file-path/162746/1 "2009-03-13T11:02:47Z")

</div>

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.

Fichier:\<%= file\_field\_tag "xml\_file" %\> \<%= submit\_tag "Envoyer" %\>

def lireXML  
load\_file = params[:xml\_file]  
remplieBD ( load\_file )  
redirect\_to (entrees\_url)  
end

---

<div class="post-metadata">

**Author:** ![BoBKilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/779978/32.png) [@BoBKilla](https://www.ruby-forum.com/u/BoBKilla)\
**Post date:** [March 13, 2009, 11:39am UTC](https://www.ruby-forum.com/t/file-tag-and-full-file-path/162746/2 "2009-03-13T11:39:45Z")

</div>

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 ?
