note 47129 added to features.file-upload.errors
| From: | tyler at fishmas dot org | Date: | Thu, 04 Nov 2004 03:08:10 +0000 |
| Subject: | note 47129 added to features.file-upload.errors | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79576@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:
if($_FILES["file_id"]["size"] == 0)
{
...PROCESS ERROR
}
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.errors.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47129
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47129&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47129&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47129&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47129&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47129&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47129&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47129&report=yes
Search -- http://master.php.net/manage/user-notes.php