Sandor Farkas Sandor Farkas - 2 years ago 173
PHP Question

file uplaod php maximum files

i would like to upload some files with php.
i got the following warning:
Warning: Maximum number of allowable file uploads has been exceeded in Unknown on line 0

But i can't find the maximum allowable files that can be uploaded.
Can i ignore the size or setting the size higher to upload all my files?

Thank you very much.

Answer Source

You probably are exceeding the PHP configured max_file_uploads variable. Which is set to a default of 50 (on Debian Lenny).

You can find and configure this variable in php.ini. You can not set it in a .htaccess file or at runtime with ini_set() because of a bug:

In php.ini there is:

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 50
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download