For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2005 > Re: [PEAR] Workaround for file upload with validate quirk









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Workaround for file upload with validate quirk
Justin Patrin

2005-10-30, 6:59 pm

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
Dan Rossi

2005-10-30, 6:59 pm


On 31/10/2005, at 7:31 AM, Justin Patrin wrote:
>
> 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.
>
> --
>


Thats a bit obvious, but mebbe is there a way for quickform to
generate an alert message to reupload the file ?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com