note 57050 rejected from features.file-upload.multiple by mazzanet
| From: | mazzanet@php.net | Date: | Fri, 30 Sep 2005 10:50:51 +0000 |
| Subject: | note 57050 rejected from features.file-upload.multiple by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96041@lists.php.net to get a copy of this message | ||
Note Submitter: Nacho Larrateguy
----
What about posting files this way
// html code
<form ... action="/ctrl/photos/act/upload"...>
Foto 1<input type="file" name="foto1" />
Foto 2<input type="file" name="foto2" />
Foto 3<input type="file" name="foto3" />
...
</form>
// In the server side I get a $_FILES populated
Array
(
[foto1] => Array
(
[name] => bar1.jpg
[type] => image/jpeg
[tmp_name] => /tmp/phpYzdqkD
[error] => 0
[size] => 123
)
[foto2] => Array
(
[name] => bar2.jpg
[type] => image/jpeg
[tmp_name] => /tmp/phpeEwEWG
[error] => 0
[size] => 123
)
[foto3] => Array
(
[name] => bar3.jpg
[type] => image/jpeg
[tmp_name] => /tmp/phpeEwEWG
[error] => 0
[size] => 123
)
)
Is anythign wrong in uploading multiple files like that? without the [] notation...
Besides, in xhtml you can't have names with [] if I'm not wrong.