note 57050 added to features.file-upload.multiple
| From: | NachoLarrateguy at osu1 dot php dot net | Date: | Thu, 22 Sep 2005 12:09:13 +0000 |
| Subject: | note 57050 added to features.file-upload.multiple | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95600@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.multiple.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57050
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57050&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57050&report=yes
Search -- http://master.php.net/manage/user-notes.php