Re: [PHP] $_FILES posting limited to 5?
Yeah, this has been worked out already - turns out I was looping on the file elements themselves (size, name, tmp_name, etc) isntead of the actual number of files. Thanks for your reply tho! :) -J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] $_FILES posting limited to 5?
> 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<- File Loop Test "; } } ?> -8<-Code Snip Ends-8<- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
BEAUTIFUL! This was the problem... it wasn't that there was a limit of 5 maximum uploads, it was just that my 'while' statement was only counting as many fields as the first sub-array for $_FILES.. which is 5. Tom, thanks a bunch! -Jason Tom Rogers wrote: > Hi, > > Wednesday, October 16, 2002, 11:49:04 PM, you wrote: > JY> I'm going to approach this question in a different way, in case some > JY> people were put off by the complexity of it yesterday. > > JY> For all those who don't know my question from yesterday, I have a > form > JY> where I can upload up to 9 files at a time. Unfortunately, only the > JY> first 5 of those files are being uploaded at any given time. > > JY> As a test, I just created a simple form with only input type 'file's, > JY> and attempted to find out how many its attempting to parse. It is > still > JY> only 5. > > JY> I have posted the full code below so people might be able to try > it on > JY> their own systems... please let me know what you might find: > > picname has 5 sub arrays called: > > name() > type() > tmp_name() > error() > size() > > You need to loop through those sub arrays like: > > while (list($key) = each($_FILES['picname'])) { > echo "$key "; > while(list($key2,$val2) = each($_FILES['picname'][$key])){ > echo "[$key2] $val2 "; > } > echo ' > '; > } > > print_r($_FILES) will show you all. > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
Hi, Wednesday, October 16, 2002, 11:49:04 PM, you wrote: JY> I'm going to approach this question in a different way, in case some JY> people were put off by the complexity of it yesterday. JY> For all those who don't know my question from yesterday, I have a form JY> where I can upload up to 9 files at a time. Unfortunately, only the JY> first 5 of those files are being uploaded at any given time. JY> As a test, I just created a simple form with only input type 'file's, JY> and attempted to find out how many its attempting to parse. It is still JY> only 5. JY> I have posted the full code below so people might be able to try it on JY> their own systems... please let me know what you might find: picname has 5 sub arrays called: name() type() tmp_name() error() size() You need to loop through those sub arrays like: while (list($key) = each($_FILES['picname'])) { echo "$key "; while(list($key2,$val2) = each($_FILES['picname'][$key])){ echo "[$key2] $val2 "; } echo ''; } print_r($_FILES) will show you all. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
I hadn't thought about that, but it does sound like a possibility. Although a browser isn't limited to 5 connections at a time. It is usually set by the user and in my experience defaults to 4 and can be set as high as 8. Most users (or even programmers) don't know about this simple setting. It helps when you have a fast pipe (set to 8) or slow pipe (set to 4). So perhaps it does have a hand in setting an upload limit. On Wednesday, October 16, 2002, at 11:03 AM, Juhan Kundla wrote: > Doesn't this have something to do with browser being able only to make > maximum 5 tcp connections at a time? Perhaps, a stupid idea, though... -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
IE can only have two concurrent connections open... eg if you have a http 1.1 connection open for say a ongoing cgi/php call (ping or traceroute) then you make another call for the same script and then a further call to the server the last call will just sit there spinning it's wheeels until on of the others in finished... the same is for downloads using IE ..you can fix this with a reg hack. Timothy Hitchens (HiTCHO) Web Application Analyst and Developer e-mail: [EMAIL PROTECTED] mobile: 0419 521 440 Juhan Kundla wrote: > Ühel ilusal päeval [16-10-2002 16:48] kirjutas Jason Young: > >>I'm going to approach this question in a different way, in case some >>people were put off by the complexity of it yesterday. >> >>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. >> >>As a test, I just created a simple form with only input type 'file's, >>and attempted to find out how many its attempting to parse. It is still >>only 5. > > > [cut] > > Doesn't this have something to do with browser being able only to make > maximum 5 tcp connections at a time? Perhaps, a stupid idea, though... > > Juhan > -- Timothy Hitchens (HiTCHO) Web Application Analyst and Developer e-mail: [EMAIL PROTECTED] mobile: 0419 521 440 - HiTCHO Group - ABN: 85 816 540 110 Web Site: http://www.hitcho.com.au/ Snail Mail: PO Box 101 Arana Hills QLD 4054 Telephone: 07 3351 0951 - Facsimile: 07 3351 0952 IMPORTANT: This email may be the view of the individual and not that of the organisation. The contents of this electronic mail (including attachments) may be privileged and commercially confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this document in error, please advise us by telephone immediately and then delete the document. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
Ühel ilusal päeval [16-10-2002 16:48] kirjutas Jason Young: > I'm going to approach this question in a different way, in case some > people were put off by the complexity of it yesterday. > > 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. > > As a test, I just created a simple form with only input type 'file's, > and attempted to find out how many its attempting to parse. It is still > only 5. [cut] Doesn't this have something to do with browser being able only to make maximum 5 tcp connections at a time? Perhaps, a stupid idea, though... Juhan -- Vastus: Sest inimene loeb suunaga ülevalt alla. Küsimus: Miks ülalpool vastamine on halb? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES posting limited to 5?
I'm going to approach this question in a different way, in case some people were put off by the complexity of it yesterday. 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. As a test, I just created a simple form with only input type 'file's, and attempted to find out how many its attempting to parse. It is still only 5. I have posted the full code below so people might be able to try it on their own systems... please let me know what you might find: loop-test.php - File Loop Test - End Code - Thanks for everyone's time on this! --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php