Mar 25th, 2010, 9:23 AM
I've been reading up on input type file around the net and it seems that it's a security issue, and thus not possible, to repopulate the input type file value with anything at any time.
But I have a problem...in my form, I'm doing just server-side validation right now and when something fails, my uploads go away. I checked and saw that the $_FILES array was getting sent back to the form, so I thought I could use that to repopulate the files that the user already selected...but no luck.
Is there any way I can accomplish repopulating uploaded file fields when a form doesn't validate?
It's really a pain for a user to have to go through choosing all of their files again just because an email address was mis-spelled, you know?
Thanks for the help!
But I have a problem...in my form, I'm doing just server-side validation right now and when something fails, my uploads go away. I checked and saw that the $_FILES array was getting sent back to the form, so I thought I could use that to repopulate the files that the user already selected...but no luck.
Is there any way I can accomplish repopulating uploaded file fields when a form doesn't validate?
It's really a pain for a user to have to go through choosing all of their files again just because an email address was mis-spelled, you know?
Thanks for the help!