RE: [PHP] Redisplay file name on failed upload
| From: | Brad Fuller | Date: | Tue, 13 Feb 2007 20:03:33 +0000 |
| Subject: | RE: [PHP] Redisplay file name on failed upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248826@lists.php.net to get a copy of this message | ||
> Is it possible to assign form[ upldFile ] = "C:\somepath\somefile"
> or
> form[ upldFile ] = $_FILES['userfile']['name']
The "value" attribute of the <input type="file"...> tag is not able to be
altered or pre-populated for obvious security reasons.
> The script which does the validation is the same one which contains the
> upload form. I suspect we're completely out of luck - apart from
> validating
> with JavaScript.
Yup.
-Brad