Page 1 of 1

File Elements

Posted: Thu Feb 24, 2011 9:32 am
by phprogrammers
We are trying to upload 12 mp3 files from a form, when we submit and go to next page and try to see whats coming in files through this code

print_r($_FILES);

It only return the first 8 files in array, no information about the rest 4.

Any idea why? If this is some server or php configuration settings that I need to look at?

Its working fine on my local machine.

Pre- thanks

Fahad

Re: File Elements

Posted: Thu Feb 24, 2011 6:56 pm
by VladSun
http://www.php.net/manual/en/features.f ... ltiple.php
Warning

Since PHP 5.2.12, the max_file_uploads configuration setting acts as a limit on the number of files that can be uploaded in one request. You will need to ensure that your form does not try to upload more files in one request than this limit.

Re: File Elements

Posted: Fri Feb 25, 2011 9:28 am
by phprogrammers
VladSun your advise was really helpful. Appreciate your help.
Thanks