I have a file field element in a view to save path of the file as follows:
<%= file_field (:def, :sset) %>
Later I am access开发者_运维技巧ing this file path as params[:def][:sset]. It works fine in Internet Explorer but Google Chrome is only saving the filename not file path. Is there any alternative to save file path too in Chrome?
Found the answer myself. I had to put :multipart=>true
in the form_tag
.
精彩评论