# Upload file size limit configuration

To ensure the normal operation of the file upload function, you need to ensure that the server's upload limit configuration meets business requirements. Common file limit settings include the following two core parameters:

  • upload_max_filesize: The maximum size of a single uploaded file.

  • post_max_size: The maximum size of the entire request body (including all fields and files).


It is recommended to set the upload limit to:

upload_max_filesize = 50M
post_max_size = 50M

# Baota users

  1. Open the Baota panel and go to Software Store -> PHP -> Configuration

  2. In the PHP configuration page, find the configuration items of upload_max_filesize and post_max_size and set their values ​​to 50M.

  3. Save the configuration and restart the PHP service. img.png

# Non-Baota users

  1. Find the path of the php.ini file currently used by PHP, which can be obtained by the following command (Linux/Unix environment):
php --ini
  1. Open the php.ini file, find the configuration items of upload_max_filesize and post_max_size, and set their values ​​to 50M.
  2. Save the configuration and restart the PHP service.