note 103522 added to reserved.variables.files
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 18 Apr 2011 13:23:17 +0000 |
| Subject: | note 103522 added to reserved.variables.files | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178938@lists.php.net to get a copy of this message | ||
As mentioned , you should check the error index of the upload.
Example below suggests you have a file field named 'image'.
<?php
if($_FILES['image']['error'] == 0){
// success - move uploaded file and process stuff here
}else{
// 'there was an error uploading file' stuff here....
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 196.215.121.7
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.files.php
Edit -- https://master.php.net/note/edit/103522
Del: integrated -- https://master.php.net/note/delete/103522/integrated
Del: useless -- https://master.php.net/note/delete/103522/useless
Del: bad code -- https://master.php.net/note/delete/103522/bad+code
Del: spam -- https://master.php.net/note/delete/103522/spam
Del: non-english -- https://master.php.net/note/delete/103522/non-english
Del: in docs -- https://master.php.net/note/delete/103522/in+docs
Del: other reasons-- https://master.php.net/note/delete/103522
Reject -- https://master.php.net/note/reject/103522
Search -- https://master.php.net/manage/user-notes.php