note 107296 deleted from features.file-upload.errors by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 21:29:45 +0000 |
| Subject: | note 107296 deleted from features.file-upload.errors by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187897@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
<?php
// Sorry, where says
define("UPLOAD_ERR_EMPTY",5);
if($file['size'] == 0){
$file['error'] = 5;
}
// Should say
define("UPLOAD_ERR_EMPTY",5);
if($file['size'] == 0 && $file['error'] == 0){
$file['error'] = 5;
}
// Please can anyone edit that?
?>