PHP 4.0 Bug #3728 Updated: Multiple uploading array doesn't initialize $userfile_type[]

From: Date: Sat, 14 Oct 2000 03:18:06 +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-34979@lists.php.net to get a copy of this message
ID: 3728 User Update by: wies@mailcity.com Status: Open Old-Bug Type: Other Bug Type: *General Issues Description: Multiple uploading array doesn't initialize $userfile_type[] Just resubmitting this with a newer version of PHP listed, since it has not been fixed yet. Previous Comments: --------------------------------------------------------------------------- [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

« previous php.dev (#34979) next »