How to modify upload size configuration in php.ini
This article introduces you how to modify the upload size configuration in php.ini, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
The method of modifying upload size configuration in php.ini: 1. Enable HTTP upload file configuration and specify temporary file storage location.
2. Modify the configuration of uploaded file size and the maximum value received by the form
3. Restart the server.
This article operating environment: windows10 system, php 7, thinkpad T480 computer.
Let's take a look at the specific steps to modify the uploaded file size configuration:
First, open php.ini
1. File_uploads = on
The switch on whether to allow files to be uploaded via HTTP. Default is ON.
2. Upload_tmp_dir
Files are uploaded to the server where temporary files are stored. If not specified, the system default temporary folder will be used.
3.upload_max_filesize = 8m
Wangwen business, that is, the maximum file size allowed to be uploaded, defaults to 2m
4.post_max_size = 8m
Refers to the maximum value that can be received to PHP through the form POST, including all values in the form. The default is 8m.
Generally speaking, after setting the above four parameters, upload