Under IIS7 configure the maximum upload attachment size

  • 2020-05-09 19:37:50
  • OfStack

The maximum upload size of attachments allowed by IIS6 is 4M by default. Before IIS7, when we need to extend this upload limit, such as setting the maximum upload size of attachments allowed to 50M, we can configure it in web.config as follows:
 
<system.web> 
<httpRuntime requestValidationMode="2.0" maxRequestLength="51200" executionTimeout="60" appRequestQueueLimit="100" /> 
</system.web> 

In addition to the above configuration, it is important to note when using IIS7
Select 1 virtual directory, select function view - double click request filter - right click edit function test, there is 1 item is allowed maximum content length, default is 30M

In other words, after using IIS7, if you want to upload the attachment of 50M, you have to modify the above two places

Related articles: