note 21510 deleted from features.file-upload.multiple by aidan
| From: | aidan@php.net | Date: | Sun, 19 Sep 2004 03:28:47 +0000 |
| Subject: | note 21510 deleted from features.file-upload.multiple by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76966@lists.php.net to get a copy of this message | ||
Note Submitter: ken at gizzar dot com
----
When you do a multiple file <form> upload via POST method, the most logical choice is to use
the PHP array:
<form method="post" enctype="multipart/form-data"
action="something.php">
<input type="file" name="uploads[first]">
<input type="file" name="uploads[second]">
.
.
.
<input type="submit">
</form>
You would get a few arrays if you had your register globals turned on:
$uploads - an array of the tmp filenames & paths
$uploads_name - an array of the name given by the browser
$uploads_size - an array of the sizes
$uploads_type - an array of the MIME types of the file uploaded
So, if I looked at the content of $uploads_name["first"] in 'something.php' (in
this case), it will give me the browser assigned name for the first file <input>.
Next, you should look at how PHP limits file sizes in php.ini!
Have fun!
-Ken