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
<label for="arquivo_fatura">Arquivo de
Fatura</label><br>
<%= file_field "foo", "arquivo_fatura" %>
apreciate any help
coelho
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---