For RFC 1867-style file uploads the information for each uploaded
file is available in this array. For example, for a file upload form
containing:
<input name="userfile" type="file">
the $_FILES array will look something like this:
$_FILES['userfile']['name'] => photo.png
$_FILES['userfile']['type'] => image/png
$_FILES['userfile']['tmp_name'] => /tmp/phpo3kdGt
$_FILES['userfile']['error'] => 0
$_FILES['userfile']['size'] => 158918
Note that the 'error' field is new for PHP 4.2.0
and the values are: 0 (no error, file was
uploaded); 1 (the uploaded file exceeds the
upload_max_filesize directive in
php.ini); 2 (the uploaded
file exceeds the MAX_FILE_SIZE directive that was
specified in the HTML form); 3 (the actual number
of bytes uploaded was less than the specified upload file size); and
4 (no file was uploaded).