Re: Checking the contents of a file field
| From: | Marek Kilimajer | Date: | Wed, 14 May 2003 12:10:11 +0000 |
| Subject: | Re: Checking the contents of a file field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147571@lists.php.net to get a copy of this message | ||
$_FILES holds info about uploaded files.
Shaun wrote:
Hi, how can i make sure that someone has selected a file to upload, the following doesn't seem to work: if(empty($_POST['document'])){ $error = "Please select a file"; Thanks for our help