note 45409 deleted from features.file-upload.multiple by tomsommer
| From: | tomsommer@php.net | Date: | Mon, 06 Sep 2004 05:28:23 +0000 |
| Subject: | note 45409 deleted from features.file-upload.multiple by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76084@lists.php.net to get a copy of this message | ||
Note Submitter: cwf at axlotl dot net
----
andrew at budgetonlinesolutions:
That's funny. This code:
<?
<input type="file" name="attachment[]">
<input type="file" name="attachment[]">
<input type="file" name="attachment[]">
<input type="file" name="attachment[]">
?>
(javascript to hide unused inputs deleted)
Produces this (when three of the four available inputs have been used):
<?
print_r($_FILES);
(
[attachment] => Array
(
[name] => Array
(
[0] => logo.png
[1] => list.php.gz
[2] => wmp54g_ug.pdf
[3] =>
)
[type] => Array
(
[0] => image/png
[1] => application/gzip
[2] => application/pdf
[3] =>
?>
etc.
In short, that method works just fine. At least in 4.3.8.