note 79383 deleted from features.file-upload by felipe
| From: | felipe@php.net | Date: | Sun, 30 Dec 2007 17:57:14 +0000 |
| Subject: | note 79383 deleted from features.file-upload by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134338@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
I couldn't see a breakdown of the 'error' array, so I thought this might help people
looking for the same:
( Note: Copied from http://www.weberdev.com/ViewArticle/File-upload-with-PHP
)
switch($_FILES['MyFile']['error']) {
case 1 : Echo"The uploaded file exceeds the upload_max_filesize directive in php.ini.";
break;
case 2 : Echo"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the
HTML form.";
break;
case 3 : Echo"The uploaded file was only partially uploaded.";
break;
case 4 : Echo"No file was uploaded.";
break;
case 6 : Echo"Missing a temporary folder.";
break;
case 7 : Echo"Failed to write file to disk";
break;
case 8 : Echo"File upload stopped by extension";
break;