Recently when using Empire CMS, I discovered a problem: when uploading files or pictures, you cannot upload more than 20 files or pictures at one time. If you exceed 20, you can only succeed 20 times.
, and the rest failed. Check that the file size is not large and does not reach any of the limits of memory_limit, post_max_size, and upload_max_filesize in PHP.
So the problem is not here. Finally, I discovered that it was a problem with the max_file_uploads configuration.
Recommended to study "Empire cms tutorial"
max_file_uploads is a parameter added in php5.2.12 and newer versions. This parameter is to set the maximum number of uploaded files each time (Maximum number of files
that can be uploaded via a single request), files exceeding this number will be discarded. So setting the value of max_file_uploads to the maximum number of
files you may use can successfully solve this problem.
We open PHP.ini and look for max_file_uploads. If it does not exist, create max_file_uploads under; File Uploads;. If it exists, it can be modified normally and set as follows.
max_file_uploads=100
After setting up, save php.ini and restart the server.
The above is the detailed content of Solution to the problem that Sharing Empire CMS can only upload 20 files at a time (max_file_uploads). For more information, please follow other related articles on the PHP Chinese website!