.net 上传文件大小限制
1、ii. System.web下修改节点HttpRuntime为
<system.web> <compilation debug="true" targetFramework="4.5.2" /> <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" /> </system.web>
2、Configuration节点下
<system.webServer> <security> <requestFiltering> <!--单位为字节 maxAllowedContentLength--> <requestLimits maxAllowedContentLength="2097151000"/> </requestFiltering> </security> </system.webServer>