Re: $_FILES associative array
| From: | Tom Rogers | Date: | Fri, 06 Dec 2002 17:10:28 +0000 |
| Subject: | Re: $_FILES associative array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127285@lists.php.net to get a copy of this message | ||
Hi,
Saturday, December 7, 2002, 2:56:53 AM, you wrote:
MS> I'm trying to find some documentation on the $_FILES
MS> array, but on PHP, it's a little confusing. I read the
MS> documentation and the comment from rep_spam@..., but
MS> that wasn't too clear to me either.
MS> I'm aware that when uploading a file named
MS> $uploadedfile, the size, name, etc. get stored in
MS> variables called $uploadedfile_size, _name, .... But
MS> when using the $_FILES array, does everything then get
MS> stored in $_FILES["uploadedfile"],
MS> $_FILES["uploadedfile_size"], etc...?
If your input is like this:
<input type="file" name="userfile" size="52" />
The array you get would look like this:
$_FILES['userfile']['name'] The original name of the file on the client machine.
$_FILES['userfile']['type'] The mime type of the file, if the browser provided
this information. An example would be "image/gif".
$_FILES['userfile']['size'] The size, in bytes, of the uploaded file.
$_FILES['userfile']['tmp_name'] The temporary filename of the file in which the
uploaded file was stored on the server
--
regards,
Tom