note 80130 added to features.file-upload.errors

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
<?php
$uploadErrors = array(
	UPLOAD_ERR_OK => 'There is no error, the file uploaded with success.',
	UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
	UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
	UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded.',
	UPLOAD_ERR_NO_FILE => 'No file was uploaded.',
	UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder.',
	UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk.',
	UPLOAD_ERR_EXTENSION => 'File upload stopped by extension.',
);

$errorCode = $_FILES['myUpload']['error'];

if($errorCode !== UPLOAD_ERR_OK && isset($uploadErrors[$errorCode]))
{
	throw new Exception($uploadErrors[$errorCode]);
}
?>
----
Server IP: 64.71.164.2
Probable Submitter: 76.27.80.247
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.errors.php
Edit        -- https://master.php.net/note/edit/80130
Del: integrated  -- https://master.php.net/note/delete/80130/integrated
Del: useless     -- https://master.php.net/note/delete/80130/useless
Del: bad code    -- https://master.php.net/note/delete/80130/bad+code
Del: spam        -- https://master.php.net/note/delete/80130/spam
Del: non-english -- https://master.php.net/note/delete/80130/non-english
Del: in docs     -- https://master.php.net/note/delete/80130/in+docs
Del: other reasons-- https://master.php.net/note/delete/80130
Reject      -- https://master.php.net/note/reject/80130
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.