note 52901 added to features.file-upload.errors

From: Date: Tue, 17 May 2005 09:22:50 +0000
Subject: note 52901 added to features.file-upload.errors
Groups: php.notes 
Request: Send a blank email to php-notes+get-89523@lists.php.net to get a copy of this message
if($_FILES['FILE']['error']) { switch($_FILES['FILE']['error']) { case '0': // There is no error, the file uploaded with success. //UPLOAD_ERR_OK break; case '1': //The uploaded file exceeds the upload_max_filesize directive in php.ini. $error = 'UPLOAD_ERR_INI_SIZE'; $error = 'UPLOAD_ERR_INI_SIZE'; break; case '2': //The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form. $error = 'UPLOAD_ERR_FORM_SIZE'; break; case '3': //The uploaded file was only partially uploaded. $error = 'UPLOAD_ERR_PARTIAL'; break; case '4': // No file was uploaded. $error = 'UPLOAD_ERR_NO_FILE'; break; case '6': // Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3. $error = 'UPLOAD_ERR_NO_TMP_DIR'; break; default: break; } } ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.errors.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52901 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52901&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52901&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52901&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52901&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52901&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52901&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89523) next »