Home  >  Article  >  CMS Tutorial  >  How does Imperial CMS solve the problem of only uploading 20 files at a time?

How does Imperial CMS solve the problem of only uploading 20 files at a time?

王林
王林Original
2019-11-09 11:13:192449browse

How does Imperial CMS solve the problem of only uploading 20 files at a time?

Question:

When uploading files or pictures, you cannot upload more than 20 files at one time. If you exceed 20, you can only succeed. 20 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.

Cause:

max_file_uploads configuration problem.

max_file_uploads is a parameter added in php5.2.12 and newer versions. This parameter is to set the maximum number of files uploaded each time. 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.

Solution:

1. Open the PHP.ini file and search for max_file_uploads. If it does not exist, create max_file_uploads under; File Uploads;. If it exists, then You can modify it normally

2. The modification is as follows:

max_file_uploads=100

3. After the settings are completed, save php.ini and restart the server.

Recommended tutorial: Empire CMS Tutorial

The above is the detailed content of How does Imperial CMS solve the problem of only uploading 20 files at a time?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn