How to modify upload file size limit in php

王林
Release: 2023-03-05 10:50:01
Original
4524 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!