Bug #1951: file upload arrays don't work properly

From: Date: Tue, 03 Aug 1999 18:27:44 +0000
Subject: Bug #1951: file upload arrays don't work properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-9479@lists.php.net to get a copy of this message
From: paul@alphabitmedia.com Operating system: Solaris 5.6 PHP version: 3.0.12 PHP Bug Type: Other Bug description: file upload arrays don't work properly okay, so I have this, which works: ======================================================================== <form enctype="multipart/form-data" method="post" action="<?php echo $PHP_SELF ?>"> <p><input name="image" type="file"> <p><input type="submit" name="submit" value="Upload"> </form> <?php if ($submit) { echo "temp file: " .$image."<br>\n"; echo "file name: " .$image_name."<br>\n"; echo "file size: " .$image_size."<br>\n"; echo "file type: " .$image_type."<br>\n"; } ?> ======================================================================== but this doesn't: ======================================================================== <form enctype="multipart/form-data" method="post" action="<?php echo $PHP_SELF ?>"> <p><input name="image[1]" type="file"> <p><input type="submit" name="submit" value="Upload"> </form> <?php if ($submit) { echo "temp file: " .$image[1]."<br>\n"; echo "file name: " .$image_name[1]."<br>\n"; echo "file size: " .$image_size[1]."<br>\n"; echo "file type: " .$image_type[1]."<br>\n"; } ?> ======================================================================== the only difference is image[1] instead of image.

« previous php.dev (#9479) next »