IIS solves the file upload size limit. iis uploads files

Source: Internet
Author: User

IIS solves the file upload size limit. iis uploads files

Objective: To solve the server's limit on the size of uploaded files through configuration files and IIS

1: modify the configuration file (the default value is 4 MB, which can be modified based on your own situation)

<HttpRuntime maxRequestLength = "2048000"/>

2: Modify IIS configuration

Open C: \ Windows \ System32 \ inetsrv \ config \ schema, and open the IIS_schema file in notepad.

Find <attribute name = "maxAllowedContentLength" type = "uint" defaultValue = "3000000000"/> and modify the default value.

If the IIS_schema cannot be opened, follow these steps:

Step 1: Right-click a file and choose advanced from properties Security

 

Step 2: select the owner to edit

 

Step 3: Check the following

In this way, you can change the size of the uploaded file.

Source code

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.