file upload

using rails2.3.9 ruby 1.8.7 paperclip
how to keep the file uploaded path or name of the file in the field after the page gets that user no need to reupload the file(It gets deleted after refresh)

You should probably be using sessions, check for version 2.3.8 and older (I don’t think there is a version 2.3.9?).

You can't.

It's nothing to do with Rails. It's to do with browser security. It
wouldn't be much good if websites could populate a file field with a
path to a local file. If they could, the site could then use JS to
submit the form and upload the file (in the background, in hidden
divs, etc) and essentially steal files from your computer...

Even Microsoft think it's a bad idea: