note 115532 added to features.file-upload.errors

From: Date: Mon, 11 Aug 2014 03:31:04 +0000
Subject: note 115532 added to features.file-upload.errors
Groups: php.notes 
Request: Send a blank email to php-notes+get-200168@lists.php.net to get a copy of this message
(thanks to adam at gotlinux dot us for the array) function getError($file){ array( 0=>"There is no error, the file uploaded with success", 1=>"The uploaded file exceeds the upload_max_filesize directive in php.ini", 2=>"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" 3=>"The uploaded file was only partially uploaded", 4=>"No file was uploaded", 6=>"Missing a temporary folder" ); $error = $file['error']; return $errors[$error]; } if($myfile['error'] != 0) die("Error:" . getError($myfile)); ---- Server IP: 72.52.91.14 Probable Submitter: 190.161.195.138 ---- Manual Page -- http://php.net/manual/en/features.file-upload.errors.php Edit -- https://master.php.net/note/edit/115532 Del: integrated -- https://master.php.net/note/delete/115532/integrated Del: useless -- https://master.php.net/note/delete/115532/useless Del: bad code -- https://master.php.net/note/delete/115532/bad+code Del: spam -- https://master.php.net/note/delete/115532/spam Del: non-english -- https://master.php.net/note/delete/115532/non-english Del: in docs -- https://master.php.net/note/delete/115532/in+docs Del: other reasons-- https://master.php.net/note/delete/115532 Reject -- https://master.php.net/note/reject/115532 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200168) next »