note 47129 modified in features.file-upload.errors by danbrown
| From: | danbrown@php.net | Date: | Mon, 27 Apr 2009 14:40:59 +0000 |
| Subject: | note 47129 modified in features.file-upload.errors by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153832@lists.php.net to get a copy of this message | ||
In regards to the dud filename being sent, a very simple way to check for this is to check the file
size as well as the file name. For example, to check the file size simple use the size attribute in
your file info array:
<?php
if($_FILES["file_id"]["size"] == 0)
{
// ...PROCESS ERROR
}
?>
--was--
In regards to the dud filename being sent, a very simple way to check for this is to check the file
size as well as the file name. For example, to check the file size simple use the size attribute in
your file info array:
<?php
if($_FILES["file_id"]["size"] == 0)
{
...PROCESS ERROR
}
?>
http://php.net/manual/en/features.file-upload.errors.php