Sandor Farkas Sandor Farkas - 5 months ago 18
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

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: http://bugs.php.net/bug.php?id=50684&edit=1

In php.ini there is:

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 50