Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify upload size configuration in php.ini

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report