Home  >  Article  >  Backend Development  >  How to modify upload file size limit in php

How to modify upload file size limit in php

王林
王林Original
2020-08-27 15:45:214603browse

How to modify the upload file size limit in php: 1. Open the php.ini configuration file; 2. Find the upload_mac_filesize option and modify its value to "8M"; 3. Find the post_max_size option and modify its value as well It can be "8M".

How to modify upload file size limit in php

Specific method:

(Recommended tutorial: php video tutorial)

First find file_uploads = on, this option indicates whether to allow file upload via HTTP, the default is ON.

How to modify upload file size limit in php

Then find upload_max_filesize = 2m, this option indicates the maximum allowed upload file size.

Modify as follows:

(Related recommendations: php training)

How to modify upload file size limit in php

Finally find post_max_size = 8m, the The option refers to the maximum value that can be received through POST to PHP through the form, including all values ​​in the form. The default is 8M.

How to modify upload file size limit in php

The above is the detailed content of How to modify upload file size limit in php. 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