Bug #3728: Multiple uploading array doesn't initialize $userfile_type[]
| From: | wies at mailcity dot com | Date: | Sun, 05 Mar 2000 03:13:01 +0000 |
| Subject: | Bug #3728: Multiple uploading array doesn't initialize $userfile_type[] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16402@lists.php.net to get a copy of this message | ||
From: wies@mailcity.com
Operating system: Linux (Redhat 6.1)
PHP version: 3.0.15
PHP Bug Type: Other
Bug description: Multiple uploading array doesn't initialize $userfile_type[]
The HTML part:
<form ENCTYPE="multipart/form-data" action="script.php"
method="post">
<input type="file" name="file[]">
<br><input type="file" name="file[]">
<p><input type="submit" value="Upload files">
</form>
The PHP part:
<? echo "$file_type[0]"; ?>
The script should produce something like "image/gif", but instead produces nothing.
My configure line: ./configure '--with-mysql' '--with-apache=../apache_1.3.11'
'--enable-track-vars' '--with-imap' '--with-pcre-regex'
$file[0], $file_name[0], $file_size[0] all work, as well as $file_type on a single-upload form.
The problem exists in 3.0.14 as well. I noticed that someone else mentioned this on the
Documentation page for multipe uploads, but there doesn't seem to be a previous bug report on
the problem.