Sea1ee

ASP.NET中默认只让传4M的大小。

如果上传的文件过大,就会上传失败。

web.config里面也是可以配置的  

maxRequestLength就是限制最大的长度。
  <system.web>
 <httpRuntime executionTimeout="3600" maxRequestLength="1048576" requestValidationMode="2.0"/>
 </system.web>

 

分类:

技术点:

相关文章:

  • 2021-10-26
  • 2021-11-24
  • 2021-11-14
  • 2022-01-04
  • 2021-05-26
  • 2021-09-25
  • 2021-06-21
猜你喜欢
  • 2022-02-10
  • 2022-02-14
  • 2021-11-28
  • 2021-10-16
  • 2022-02-11
  • 2021-11-14
  • 2022-01-02
相关资源
相似解决方案