Retaining file path

Hello All,

I am submitting a page which consists of a file type input. So if i
select file path after browsing and validation error comes out then all
other info is chipped to the page but no file path. So can you guys
light me into some direction that how to retain file path.

Also, can i retain javascript values as well … ? :slight_smile:

Thanks in advance to you guys.

It’s nothing to do with Rails or your coding; html security prevents
file
input boxes being populated with any default value.

On Jul 2, 2010 1:06 PM, “Hemant B.” [email protected] wrote:

Hello All,

I am submitting a page which consists of a file type input. So if i
select file path after browsing and validation error comes out then all
other info is chipped to the page but no file path. So can you guys
light me into some direction that how to retain file path.

Also, can i retain javascript values as well … ? :slight_smile:

Thanks in advance to you guys.

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 [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.