时间:2022-02-10 13:50:06 | 栏目:.NET代码 | 点击:次
话不多说,随小编一起看看下面代码吧
i. Configuration节点下
<system.webServer> <security> <requestFiltering> <!--单位为字节 maxAllowedContentLength--> <requestLimits maxAllowedContentLength="2097151000"/> </requestFiltering> </security> </system.webServer>
ii. System.web下修改节点HttpRuntime为
<!--单位为KB maxRequestLength--> <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />