Page 1 of 1

Reputting input files into fields

Posted: Tue Aug 08, 2006 11:20 am
by shiznatix
Ok the topic title sucks but bear with me.

I have a form, if there where some errors in that form (empty field, etc) then I want the fields that where wrong to lose their value but the other ones keep their value so the user does not have to type everything out. This is done, no problem at all.

The problem comes with files they will be uploading with this form. Is there a way of saving the file location from their HD and then putting that back into the file box so they don't have to go through all those again?

Posted: Tue Aug 08, 2006 11:22 am
by JayBird
It isn't possible for security reasons, the value of a file field can't be set, neither from HTML or JavaScript.

Otherwise i could trick you into uploading any file from your computer that i wanted

Posted: Tue Aug 08, 2006 11:32 am
by shiznatix
Pimptastic wrote:It isn't possible for security reasons, the value of a file field can't be set, neither from HTML or JavaScript.

Otherwise i could trick you into uploading any file from your computer that i wanted
thats what I was thinking but i was hoping that there was some sort of way to do it.

le sigh