在web.config中添加如下配置:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="314572800"></requestLimits>
</requestFiltering>
</security>
</system.webServer>maxAllowedContentLength="314572800" 表示最大上传内容大小为300M,你根据需要设置成自己的值就行了
本文详细介绍了如何在web.config中设置最大上传内容大小为300M,方便开发者灵活调整上传文件限制。

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



