RE: [PHP] $_FILES posting limited to 5?

From: Date: Wed, 16 Oct 2002 21:25:38 +0000
Subject: RE: [PHP] $_FILES posting limited to 5?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120242@lists.php.net to get a copy of this message
> For all those who don't know my question from yesterday, I > have a form where I can upload up to 9 files at a time. > Unfortunately, only the first 5 of those files are being > uploaded at any given time. I haven't specifically checked your program logic but I believe that this is where your problem is. I created a similar php script using your included sample as a base and it quite happily reports a file uploaded for each of the nine form elements. -----8<-----Working Code-----8<----- <html> <head> <title>File Loop Test</title> </head> <body> <?PHP if (isset($submit) && !empty($submit)) { for ($i = 0; $i < sizeof($upfile); $i++) { echo "File $i: "; print_r($upfile[$i]); echo "<br>"; } } ?> <form enctype="multipart/form-data" method="post" name="slAdd" action="loop.php"> <input type="hidden" name="MAX_FILE_SIZE" value="10000000"> <input type=submit name="submit" value="Add"> <br> <hr> <table width="70%"> <tr> <td><input type="file" name="upfile[0]"></td> <td><input type="file" name="upfile[1]"></td> <td><input type="file" name="upfile[2]"></td> </tr><tr> <td><input type="file" name="upfile[3]"></td> <td><input type="file" name="upfile[4]"></td> <td><input type="file" name="upfile[5]"></td> </tr><tr> <td><input type="file" name="upfile[6]"></td> <td><input type="file" name="upfile[7]"></td> <td><input type="file" name="upfile[8]"></td> </tr> </table> </form> </body> </html> -----8<-----Code Snip Ends-----8<-----

« previous php.general (#120242) next »