IIS7 configuration maximum upload attachment size needs to pay attention to the steps and steps

  

IIS6 default allowable attachment maximum upload size is 4M, before IIS7, when we need to expand this upload limit, such as the need to allow uploading attachment limit Set to 50M, you can do the following configuration in web.config:

The code is as follows:

<system.web> <httpRuntime requestValidationMode="2.0" maxRequestLength=" 51200" executionTimeout="60" appRequestQueueLimit="100" /> </system.web>

After using IIS7, in addition to the above configuration, you also need to notice that a virtual directory is selected. Select function view----double-click request filtering---right-click to select the editing function test, which has the maximum allowed content length, the default is 30M

That is, after using IIS7, if you want Upload 50M attachments, you have to modify the above two places

Copyright © Windows knowledge All Rights Reserved