PHP 4.0 Bug #3728 Updated: Multiple uploading array doesn't initialize $userfile_type[]
| From: | Bug Database | Date: | Sun, 15 Oct 2000 01:47:04 +0000 |
| Subject: | PHP 4.0 Bug #3728 Updated: Multiple uploading array doesn't initialize $userfile_type[] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35029@lists.php.net to get a copy of this message | ||
ID: 3728
User Update by: wies@mailcity.com
Old-Status: Open
Status: Closed
Bug Type: *General Issues
Description: Multiple uploading array doesn't initialize $userfile_type[]
rasmus was quite correct. After upgrading to 4.0.2, it does work. Good work!
Previous Comments:
---------------------------------------------------------------------------
[2000-10-13 23:23:47] rasmus@php.net
You mention PHP 3.0.x in your report but listed it as a PHP 4 bug. Are you seeing this in the
latest PHP 4? I'm pretty sure I fixed this a while ago in PHP 4.
---------------------------------------------------------------------------
[2000-10-13 23:18:05] wies@mailcity.com
Just resubmitting this with a newer version of PHP listed, since it has not been fixed yet.
---------------------------------------------------------------------------
[2000-03-07 21:01:54] wies@mailcity.com
I guess this bug has been around since at least 3.0.12, and the PHP dev team
was sent this patch before, but the bug still exists.
chris was kind enough to send me a patch to fix this problem:
You can find the patch at
http://www.ldsys.net/~cgs/php/
Thanks chris!
---------------------------------------------------------------------------
[2000-03-04 22:13:01] wies@mailcity.com
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=3728