# How to return Full path in File\_field?

**URL:** <https://www.ruby-forum.com/t/how-to-return-full-path-in-file-field/111901>\
**Category:** Rails\
**Created:** [August 13, 2007, 6:33am UTC](https://www.ruby-forum.com/t/how-to-return-full-path-in-file-field/111901 "2007-08-13T06:33:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coelho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e9c0ed/32.png) [@coelho](https://www.ruby-forum.com/u/coelho)\
**Post date:** [August 13, 2007, 6:33am UTC](https://www.ruby-forum.com/t/how-to-return-full-path-in-file-field/111901/1 "2007-08-13T06:33:44Z")

</div>

Hello,

I have put a file\_field on my form and it is working but instead of  
returning the full PATH+filename it only returns filename. On screen  
when I pick a file it shows Path+filename but when submited only  
filename goes through

Heres the controller thing

def pickfile  
if request.post?  
puts params[:foo][:filepath]  
end  
end

and view

Arquivo de Fatura  
  
\<%= file\_field “foo”, “arquivo\_fatura” %\>

apreciate any help  
coelho

---

<div class="post-metadata">

**Author:** ![coelho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e9c0ed/32.png) [@coelho](https://www.ruby-forum.com/u/coelho)\
**Post date:** [August 13, 2007, 6:36am UTC](https://www.ruby-forum.com/t/how-to-return-full-path-in-file-field/111901/2 "2007-08-13T06:36:01Z")

</div>

Just making small correction I meant to write

File  
  
\<%= file\_field “foo”, “filepath” %\>
