Iis7 modify the size of the uploaded file

Source: Internet
Author: User

Iis7 is different from other versions. In addition to modifying maxrequestlength under Web. config, you also need to use the following command to modify the IIS request size. (Machine. config and meta **. XML are not found in iis7. <The specific name is missing>)

By default, iis7 has a maximum upload size of 30 mb, and is changed to around 3 GB:

 

C: \ Users \ Administrator> % WINDIR % \ system32 \ inetsrv \ appcmd.exe set config-section:
System. webserver/security/requestfiltering-requestlimits. maxallowedcontentlengt
H: 3000000000

 

Output after success:

In the configuration submission path, "Machine/webroot/apphost" is directed to "sy" of "machine/webroot/apphost ".
The stem. webserver/security/requestfiltering section applies configuration changes

 

PS: Ah.

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.