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

2019-11-29,,,

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

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

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

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

下载本文的Word格式文档,以方便收藏与打印。