Home > Article > Backend Development > How to modify upload file size limit in php
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".
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.
Then find upload_max_filesize = 2m, this option indicates the maximum allowed upload file size.
Modify as follows:
(Related recommendations: php training)
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.
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!