note 115532 deleted from features.file-upload.errors by salathe

From: Date: Fri, 22 Aug 2014 08:02:13 +0000
Subject: note 115532 deleted from features.file-upload.errors by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-200244@lists.php.net to get a copy of this message
Note Submitter: gonzalo dot tajmuch at gmail dot com ---- (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));

« previous php.notes (#200244) next »