I've got a form with a "file" field in it, like this:
<input name="imagefile" type="file" />
When the user clicks the button they choose a file, submit the form, and the submitted file is passed along as $_FILES['imagefile'].
If there's an error though, the script reloads the form and is supposed to echo back what the user input (with comments showing where the error was made, etc.) Works fine for everything, but I can't get it to echo the chosen file back in the file form field.
I tried adding a "value" parameter to the form field. When it echoes back I get
value="Array"
which makes sense, as a file upload is an array of parameters in PHP. But the form button still says "no file selected".
Any idea if there's a way to echo a file to a file form field, or are these fields strictly "input only" - one-way fields?
Thanks
Bob