您的位置:首页 > 编程语言 > ASP

Asp.Net修改上传文件大小限制(修改web.config)

2013-06-16 18:58 816 查看
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" />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: