首页 > 编程技术 > ASP.NET

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

发布时间:2021-9-22 10:05

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

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

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

标签:[!--infotagslink--]

您可能感兴趣的文章: