Re: Workaround for file upload with validate quirk
| From: | Justin Patrin | Date: | Sun, 30 Oct 2005 20:31:55 +0000 |
| Subject: | Re: Workaround for file upload with validate quirk | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21708@lists.php.net to get a copy of this message | ||
On 10/29/05, Dan Rossi <pear@electroteque.org> wrote:
> Hi there just discovered a quirk when validating a form and uploading a
> file, if you select to upload a file, but the form still fails a
> validation, the form is returned however when posting again you have
> lost that uploaded file and there is no setting to tell the end user to
> reupload the file. How do we get around this, rather than letting them
> repost to only work out they need to reupload the file again ??
>
It is AFAIK impossible to populate a file field in an HTML form with a
value. The user just needs to choose their file again every time.
--
Justin Patrin