Re: [PHP] Re: Another odd file problem / Limit on File uploads?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 15 October 2002 04:45 pm, David Freeman wrote: > How large are the files you're using for testing? Try repeating the > test with files under 1k and see if the result is different. You might > be running into a page timeout rather than file size limitation. > > CYA, Dave He is posting without files and it still stops at 5 and if it was timeout wouldn't it say something like max_execution_time exceeded? - -- ~Paul Nicholson Design Specialist @ WebPower Design "The webthe way you want it!" [EMAIL PROTECTED] "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 iD8DBQE9rJlaDyXNIUN3+UQRAlWVAJsEJnBMNCYOn774fvdCSbCGWIIJuACffOeL lpXSs1ADA4G02ZygYWv6Tx8= =MWas -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Another odd file problem / Limit on File uploads?
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 Include Include Include Include Include Include Include Include Include 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 webthe way you want it!" > [EMAIL PROTECTED] > > "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- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Another odd file problem / Limit on File uploads?
> 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?? How large are the files you're using for testing? Try repeating the test with files under 1k and see if the result is different. You might be running into a page timeout rather than file size limitation. CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Another odd file problem / Limit on File uploads?
-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 webthe way you want it!" [EMAIL PROTECTED] "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- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Another odd file problem / Limit on File uploads?
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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Can you post the values of the post_max_size, upload_max_filesize, > & memory limit ini settings? > ~Paul > > On Tuesday 15 October 2002 03:21 pm, Jason Young wrote: > > >Can't anyone help me with this? :-/ > > > >Read below... > > > >I wrote: > > > >>Hey yet again... > >> > >>I've got a 3x3 grid of type 'file' input elements, for a nifty total of > >>9 upload spaces.. > >> > >>After specifying a file in all 9, and attempting upload, I only got 5.. > >>I noticed the total filesize was 2 megs, so I changed the php.ini to 8.. > >>yet I still got that problem. So I checked how my file array was being > >>posted, and it turns out only 5 of them go through! > >> > >>Hopefully someone can follow this particular code... > >>In the HTML Form, we have: > >> > >>Include > >>Include > >>. > >>Include > >> > >>(The picInc array just allows them to set whether or not they really > >>want that picture included (in case they mess up and don't want to > >>upload such a pic - I wouldn't expect some of the users to be savvy > >>enough to know to just delete the text from the field)) > >> > >>In the PHP upload, to check to see which elements are being parsed, I > >>have: > >> > >>$current = 0; > >> > >>while (list($key) = each($_FILES['picname'])) { > >> > >> echo $current; > >> /* -- This is the normal code just to satisfy everyone's curiosity. > >> if ($picInc[$current] == true) { > >> > >>if (!is_dir($dir)) > >> mkdir($dir); > >> > >>if (!is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) > >> echo "*" . $_FILES['picname']['name'][$current] . "* couldn't > >>be copied!"; > >> > >>if (is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) { > >> move_uploaded_file($_FILES['picname']['tmp_name'][$current], > >>$dir.$current.".jpg"); > >> > >> $log_query = "INSERT INTO pictures (pictureID, series) VALUES > >>('$pID', '$current')"; > >> $log_result = mysql_query($log_query) or die ("Couldn't Insert > >>Picture Record!"); > >>} > >> } > >> */ -- End curiosity mode ;-) > >> $current++; > >>} > >> > >>On my output, I just get 01234 .. 5 elements. > >>My question is specifically on how to get all 9 to upload, those 5 > >>files, if specified, do indeed upload fine - just clearing that up :-) > >> > >>Any insight? 5 elements seems to be something deliberate, but I can't be > >>sure, myself. > >> > >>Thanks! > >>-Jason > > > - -- > ~Paul Nicholson > Design Specialist @ WebPower Design > "The webthe way you want it!" > [EMAIL PROTECTED] > > "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 > > iD8DBQE9rHAlDyXNIUN3+UQRAkOFAJ9WZ7n1319LPagN8UlG8SHhOxBL+QCbBQnY > ffiyL5zI3kpCpr4nj7F41s4= > =eTBn > -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Another odd file problem / Limit on File uploads?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Can you post the values of the post_max_size, upload_max_filesize, & memory limit ini settings? ~Paul On Tuesday 15 October 2002 03:21 pm, Jason Young wrote: > Can't anyone help me with this? :-/ > > Read below... > > I wrote: > > Hey yet again... > > > > I've got a 3x3 grid of type 'file' input elements, for a nifty total of > > 9 upload spaces.. > > > > After specifying a file in all 9, and attempting upload, I only got 5.. > > I noticed the total filesize was 2 megs, so I changed the php.ini to 8.. > > yet I still got that problem. So I checked how my file array was being > > posted, and it turns out only 5 of them go through! > > > > Hopefully someone can follow this particular code... > > In the HTML Form, we have: > > > > Include > > Include > > . > > Include > > > > (The picInc array just allows them to set whether or not they really > > want that picture included (in case they mess up and don't want to > > upload such a pic - I wouldn't expect some of the users to be savvy > > enough to know to just delete the text from the field)) > > > > In the PHP upload, to check to see which elements are being parsed, I > > have: > > > > $current = 0; > > > > while (list($key) = each($_FILES['picname'])) { > > > > echo $current; > > /* -- This is the normal code just to satisfy everyone's curiosity. > > if ($picInc[$current] == true) { > > > > if (!is_dir($dir)) > > mkdir($dir); > > > > if (!is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) > > echo "*" . $_FILES['picname']['name'][$current] . "* couldn't > > be copied!"; > > > > if (is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) { > > move_uploaded_file($_FILES['picname']['tmp_name'][$current], > > $dir.$current.".jpg"); > > > > $log_query = "INSERT INTO pictures (pictureID, series) VALUES > > ('$pID', '$current')"; > > $log_result = mysql_query($log_query) or die ("Couldn't Insert > > Picture Record!"); > > } > > } > > */ -- End curiosity mode ;-) > > $current++; > > } > > > > On my output, I just get 01234 .. 5 elements. > > My question is specifically on how to get all 9 to upload, those 5 > > files, if specified, do indeed upload fine - just clearing that up :-) > > > > Any insight? 5 elements seems to be something deliberate, but I can't be > > sure, myself. > > > > Thanks! > > -Jason - -- ~Paul Nicholson Design Specialist @ WebPower Design "The webthe way you want it!" [EMAIL PROTECTED] "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 iD8DBQE9rHAlDyXNIUN3+UQRAkOFAJ9WZ7n1319LPagN8UlG8SHhOxBL+QCbBQnY ffiyL5zI3kpCpr4nj7F41s4= =eTBn -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Another odd file problem / Limit on File uploads?
Can't anyone help me with this? :-/ Read below... I wrote: > Hey yet again... > > I've got a 3x3 grid of type 'file' input elements, for a nifty total of > 9 upload spaces.. > > After specifying a file in all 9, and attempting upload, I only got 5.. > I noticed the total filesize was 2 megs, so I changed the php.ini to 8.. > yet I still got that problem. So I checked how my file array was being > posted, and it turns out only 5 of them go through! > > Hopefully someone can follow this particular code... > In the HTML Form, we have: > > Include > Include > . > Include > > (The picInc array just allows them to set whether or not they really > want that picture included (in case they mess up and don't want to > upload such a pic - I wouldn't expect some of the users to be savvy > enough to know to just delete the text from the field)) > > In the PHP upload, to check to see which elements are being parsed, I > have: > > $current = 0; > > while (list($key) = each($_FILES['picname'])) { > > echo $current; > /* -- This is the normal code just to satisfy everyone's curiosity. > if ($picInc[$current] == true) { > > if (!is_dir($dir)) > mkdir($dir); > > if (!is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) > echo "*" . $_FILES['picname']['name'][$current] . "* couldn't > be copied!"; > > if (is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) { > move_uploaded_file($_FILES['picname']['tmp_name'][$current], > $dir.$current.".jpg"); > > $log_query = "INSERT INTO pictures (pictureID, series) VALUES > ('$pID', '$current')"; > $log_result = mysql_query($log_query) or die ("Couldn't Insert > Picture Record!"); > } > } > */ -- End curiosity mode ;-) > $current++; > } > > On my output, I just get 01234 .. 5 elements. > My question is specifically on how to get all 9 to upload, those 5 > files, if specified, do indeed upload fine - just clearing that up :-) > > Any insight? 5 elements seems to be something deliberate, but I can't be > sure, myself. > > Thanks! > -Jason > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php