Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum number of allowable file uploads has been exceeded

Tags:

We're uploading about 500 images at a time

max_file_uploads = 600 memory_limit = 200M ( most images are 12-15KB ) post_max_size = 200M 

Why are we still getting that warning?

EDIT: All these variables are set in the php.ini file and confirmed by checking using phpinfo();

like image 778
HyderA Avatar asked Dec 14 '10 11:12

HyderA


People also ask

What is the maximum file uploading limit in PHP?

The default PHP values are 2 MB for upload_max_filesize, and 8 MB for post_max_size.

How do I change the maximum upload size in PHP INI?

To increaes file upload size in PHP, you need to modify the upload_max_filesize and post_max_size variable's in your php. ini file. In addition, you can also set the maximum number of files allowed to be uploaded simultaneously, in a single request, using the max_file_uploads .


2 Answers

The PHP script won't even start executing until all the files have been uploaded. That means that you cannot change the max_file_uploads directive from within PHP, e.g. with ini_set(): you need to do it in the php.ini file. Otherwise, when you change the setting the limit has already been hit.

like image 114
Álvaro González Avatar answered Oct 21 '22 00:10

Álvaro González


add max_file_uploads=500 to php.ini  
like image 22
Shakti Singh Avatar answered Oct 21 '22 00:10

Shakti Singh