PHP 4.0 Bug #5836: uploading files: *_type wont have the right count
| From: | wico at cnh dot nl | Date: | Fri, 28 Jul 2000 13:41:54 +0000 |
| Subject: | PHP 4.0 Bug #5836: uploading files: *_type wont have the right count | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26714@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0 Latest CVS (28/07/2000)
PHP Bug Type: Scripting Engine problem
Bug description: uploading files: *_type wont have the right count
if you use a mutliple uploads form (say 3 uploads) and you wil only fill in upload2 in the browser
the arrays *, *_name and *_size has 3 items and *_type will have one :
var_dumps after doing the above:
// *
array(3) {
[0]=>
string(4) "none"
[1]=>
string(14) "/tmp/phpCiTyX5"
[2]=>
string(4) "none"
}
// *_name
array(3) {
[0]=>
string(0) ""
[1]=>
string(10) "Status.htm"
[2]=>
string(0) ""
}
// *_size
array(3) {
[0]=>
int(0)
[1]=>
int(1845)
[2]=>
int(0)
}
// *_type
array(1) {
[0]=>
string(9) "text/html"
}
this should be:
// *_size
array(3) {
[0]=>
string(0) ""
[1]=>
string(9) "text/html"
[2]=>
string(0) ""
}
Greetz,
Wico