Is it possible to store the full path of a file upload, and return it in
the value= attribute?
Here is the scenario:
A web form with some basic fields (name, address, etc.) plus a file
upload field. If the user forgets to fill in a required field (eg,
name), I show the form again, requesting them to fill in the required
field. We don't want to force them to enter everything again, so the
other fields have been pre-filled with their information (using the
value= attribute) -- however this does not work for the file upload.
I can identify the file name:
$file_reference = $_FILES['upload_pdf']['name'];
but this does not contain the full path reference. Also, I cannot put
this value into the form using the value= attribute -- it doesn't
display anything.
Does anyone know how to make this work?