note 79383 added to features.file-upload
| From: | Anonymous at osu1 dot php dot net | Date: | Sat, 24 Nov 2007 07:00:32 +0000 |
| Subject: | note 79383 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132522@lists.php.net to get a copy of this message | ||
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;
----
Server IP: 203.16.234.20
Probable Submitter: 121.208.29.73
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- https://master.php.net/note/edit/79383
Del: integrated -- https://master.php.net/note/delete/79383/integrated
Del: useless -- https://master.php.net/note/delete/79383/useless
Del: bad code -- https://master.php.net/note/delete/79383/bad+code
Del: spam -- https://master.php.net/note/delete/79383/spam
Del: non-english -- https://master.php.net/note/delete/79383/non-english
Del: in docs -- https://master.php.net/note/delete/79383/in+docs
Del: other reasons-- https://master.php.net/note/delete/79383
Reject -- https://master.php.net/note/reject/79383
Search -- https://master.php.net/manage/user-notes.php