note 87614 deleted from reserved.variables.files by danbrown
| From: | danbrown@php.net | Date: | Fri, 12 Dec 2008 19:56:21 +0000 |
| Subject: | note 87614 deleted from reserved.variables.files by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148098@lists.php.net to get a copy of this message | ||
Note Submitter: kabhi dot iitk at gmail dot com
Reason: in docs
----
$_FILES is an array, which may look like
Array
(
[imageFile] => Array
(
[name] => 123.JPG
[type] => image/jpeg
[tmp_name] => D:\xampp\tmp\phpB8.tmp
[error] => 0
[size] => 48240
)
)
Example:
In your HTML code, you want to upload a photo
<form action="upload.php" method="POST"
enctype="multipart/form-data">
<input type="file" name="imageFile">
</form>
When this form is submitted, $_FILES array will be an associative array as shown above.
print_r($_FILES) will give all information stored in this array.