|
Posted by Chris on 08/22/06 15:34
I have researched for quite some time and haven't found any solutions for
making a file upload form element sticky. I have my validation code in
place, but when the user returns to the form to input missing data (via
browser back button), the text data for a name for the document remains, but
the file upload is no longer there. One forum suggested that the file has
already been handled, so there is no need to re-upload the file - so you
could just advise user that there is no need to re-upload. However I noted
that when the user goes back to the page, makes corrections and resubmits
without re-browsing for the file, the "File not selected" error appears.
I have tried using the $_FILES['file'} directly as well as assigning
variables to it and passing them back to the form (all processing and the
form is on the same page) via the url when providing a link to 'reload' the
page. This doesn't work either. I have looked into various ways of
defining the form element. Apparently a 'file' type form element doesn't
use a 'value' like other form elements do. Is there a way to make the file
upload element sticky? Please note that this particular form is for a
multiple file upload and all file data is being input into a MySQL db after
upload is successful. I do have other single file upload forms on the site
that I would also like to make 'sticky'.
Thanks,
Chris
Navigation:
[Reply to this message]
|