Re: Re: Another odd file problem / Limit on File uploads?
| From: | Jason Young | Date: | Tue, 15 Oct 2002 21:21:27 +0000 |
| Subject: | Re: Re: Another odd file problem / Limit on File uploads? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120073@lists.php.net to get a copy of this message | ||
Well... you asked for it :D
Here's the code:
Key: When the user puts the URL or clicks the "Browse" button, they're required to hit the "Show Picture" button. This puts that picture into the 'pic[]' img space, and enables picInc[].
I didn't bother putting the javascript function picShow in here, because that works and doesn't cause problems.
I'm about to leave work at this very moment so I apologize for not cleaning up the table tags beforehand.. I need to get out of here.. lol
<td><center><img height="1" width="1" src="blank.jpg" name="pic[0]"><br><input type="file" name="picname[0]"><br><input type="button" value="Show Picture" onClick="picShow('0');"> <input type="checkbox" disabled name="picInc[0]">Include</center></td>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[1]"><br><input type="file" name="picname[1]"><br><input type="button" value="Show Picture" onClick="picShow('1');"> <input type="checkbox" disabled name="picInc[1]">Include</center></td>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[2]"><br><input type="file" name="picname[2]"><br><input type="button" value="Show Picture" onClick="picShow('2');"> <input type="checkbox" disabled name="picInc[2]">Include</center></td>
</tr><tr>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[3]"><br><input type="file" name="picname[3]"><br><input type="button" value="Show Picture" onClick="picShow('3');"> <input type="checkbox" disabled name="picInc[3]">Include</center></td>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[4]"><br><input type="file" name="picname[4]"><br><input type="button" value="Show Picture" onClick="picShow('4');"> <input type="checkbox" disabled name="picInc[4]">Include</center></td>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[5]"><br><input type="file" name="picname[5]"><br><input type="button" value="Show Picture" onClick="picShow('5');"> <input type="checkbox" disabled name="picInc[5]">Include</center></td>
</tr><tr>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[6]"><br><input type="file" name="picname[6]"><br><input type="button" value="Show Picture" onClick="picShow('6');"> <input type="checkbox" disabled name="picInc[6]">Include</center></td>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[7]"><br><input type="file" name="picname[7]"><br><input type="button" value="Show Picture" onClick="picShow('7');"> <input type="checkbox" disabled name="picInc[7]">Include</center></td>
<td><center><img height="1" width="1" src="blank.jpg" name="pic[8]"><br><input type="file" name="picname[8]"><br><input type="button" value="Show Picture" onClick="picShow('8');"> <input type="checkbox" disabled name="picInc[8]">Include</center></td>
</tr>
As I said before, its not even a problem with the pictures themselves.. as I noted in my PHP code earlier, I looped through it just printing the current $_FILES index it was working on, and it stops at 4 (the fifth file) no matter what... Other people have mentioned that their 5+ file uploads work just fine... I don't think I've done anything different between picname[4] and picname[5]...
--Jason
Paul Nicholson wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey, AFAIK, There is no "limit" on the amount of files that can be uploaded at once. Could you post the html code for the form? Note: The post_max_size should be larger than the upload_max_filesize & the memory limit has to be larger than the post_max_size. So you should have something like: upload_max_filesize = 8M post_max_size = 14M memory_limit = 16M ~Paul On Tuesday 15 October 2002 03:58 pm, Jason Young wrote: Sure.. post_max_size = 10M upload_max_filesize = 8M memory_limit = 8M As I said before, however.. even without throwing files there, my loop test code only spits out '01234', meaning that its only looping 5 times through the code before exiting... Does file handling only allow for 5 files at a time?? -Jason - -- ~Paul Nicholson Design Specialist @ WebPower Design "The web....the way you want it!" paul@webpowerdesign.net "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9rHllDyXNIUN3+UQRAnWhAJoCzG5nR92Vvq/XL7H0y/O6NBfDaQCgiTbV cUr4AQHsTOrqDPqtGaiRGWo= =gVfa -----END PGP SIGNATURE-----