Setting the file Upload Size limit setting method in IIS 7 _win server

Source: Internet
Author: User
Tags file upload

The way to set the file upload size in IIS 6.0 is to configure the following nodes:

Copy Code code as follows:

<system.web>
</system.web>

However, in IIS7, the setting is set as above, no matter how large the number is set, the maximum upload limit is 30M

The following settings are also required to be correct:

Method 1:

Appcmd set config "My Site/myapp"-section:requestfiltering-requestlimits.maxallowedcontentlength:104857600- Commitpath:apphost

On the command line of the IIS server, follow the instructions above, and change the site name and upload file size

Method 2:

Add the following configuration to the web.config:

Copy Code code as follows:

<system.webServer>
<security>
<requestFiltering>
<requestlimits maxallowedcontentlength= "1048576000" ></requestLimits>
</requestFiltering>
</security>
</system.webServer>

The following methods are not correct or bad

There are a number of ways to modify the Web: "C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml" files, but this can be done, but if the system is installed patches, it is possible to overwrite the file, Let the settings fail;

In addition, there are also said modifications:

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.