HttpRuntimeSection.MaxRequestLength 属性,请求的最大大小(以千字节为单位)。 默认大小为 4096 KB (4 MB)

<system.web>  
  
  <httpRuntime  maxrequestLength="2097152" executionTimeout="3600"/>  <!--maxRequestLength就是文件的最大字符数,最大值不能超过2个G左右,executionTimeout是超时时间-->  
  
   <compilation debug="true" targetFramework="4.0" />  
 </system.web>  

MaxAllowedContentLength属性,以字节为单位,您想要启用附件的大小。默认 30000000B,约30M。

<security>
      <requestFiltering>
        <!--限制上传大小为2G-->
        <requestLimits maxAllowedContentLength="2147483647" />
      </requestFiltering>      
    </security>

 

相关文章:

  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2022-01-04
  • 2021-09-21
  • 2022-12-23
  • 2021-04-06
相关资源
相似解决方案