首页 > 编程 > .NET > 正文

Asp.Net修改上传文件大小限制方法

2024-07-10 13:31:42
字体:
来源:转载
供稿:网友

话不多说,随小编一起看看下面代码吧

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" />

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,同时也希望多多支持VeVb武林网!


注:相关教程知识阅读请移步到ASP.NET教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表