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

  • A+
所属分类:ASP.NET

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

Configuration节点下

  1. <system.webServer>  
  2.     <security>  
  3.       <requestFiltering>  
  4.         <!--单位为字节 maxAllowedContentLength-->  
  5.         <requestLimits maxAllowedContentLength="2097151000"/>  
  6.       </requestFiltering>  
  7.     </security>  
  8.   </system.webServer>  

System.web下修改节点HttpRuntime为

  1. <!--单位为KB maxRequestLength-->  
  2. <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />  
钰玺

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: