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.