note 45409 added to features.file-upload.multiple
| From: | cwf at axlotl dot net | Date: | Mon, 06 Sep 2004 04:26:53 +0000 |
| Subject: | note 45409 added to features.file-upload.multiple | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76081@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.multiple.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45409
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45409&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45409&report=yes
Search -- http://master.php.net/manage/user-notes.php