<!--网页允许的最大设置节点-->
<system.web>
<httpRuntime targetFramework="4.5" maxRequestLength="409600" />
</system.web>
<!--IIS允许的最大设置节点-->
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2072576000"/><!--2G-->
</requestFiltering>
</security>
</system.webServer>
本文详细介绍了如何在Web应用中配置IIS和.NET框架,以提高最大上传文件的限制,包括设置system.web下的httpRuntime节点和system.webServer下的requestFiltering节点,确保能够接收更大的文件上传。

506

被折叠的 条评论
为什么被折叠?



