note 107296 added to features.file-upload.errors
| From: | Anonymous | Date: | Sat, 28 Jan 2012 06:49:44 +0000 |
| Subject: | note 107296 added to features.file-upload.errors | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185775@lists.php.net to get a copy of this message | ||
<?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?
?>
----
Server IP: 69.147.83.197
Probable Submitter: 190.51.177.110
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.errors.php
Edit -- https://master.php.net/note/edit/107296
Del: integrated -- https://master.php.net/note/delete/107296/integrated
Del: useless -- https://master.php.net/note/delete/107296/useless
Del: bad code -- https://master.php.net/note/delete/107296/bad+code
Del: spam -- https://master.php.net/note/delete/107296/spam
Del: non-english -- https://master.php.net/note/delete/107296/non-english
Del: in docs -- https://master.php.net/note/delete/107296/in+docs
Del: other reasons-- https://master.php.net/note/delete/107296
Reject -- https://master.php.net/note/reject/107296
Search -- https://master.php.net/manage/user-notes.php