Maximum number of allowable file uploads has been

2020-02-05 06:07发布

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();

2条回答
别忘想泡老子
2楼-- · 2020-02-05 06:45

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.

查看更多
别忘想泡老子
3楼-- · 2020-02-05 07:03
add max_file_uploads=500 to php.ini 
查看更多
登录 后发表回答