http upload file 有无max size limit
 
ASP.NET预设是4MB,如超过要自己去web.config 中设置。
<httpRuntime>
配置 ASP.NET HTTP 运行库设置。该节可以在计算机、站点、应用程序和子目录级别声明。
示例:控制用户上传文件最大为4M,最长时间为60秒,最多请求数为100
 
<httpRuntime maxRequestLength="4096"
 executionTimeout="60"
appRequestQueueLimit="100"/>
 
系统默认预设是 4096,单位为 KB。
 
***
如果超出上述设置,则会显示"Page Cannot be Displayed” 错误信息,当然可以通过各种机制捕获上述异常。

相关文章:

  • 2021-06-21
  • 2021-10-21
  • 2022-01-08
  • 2021-11-30
  • 2021-07-22
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-01-17
  • 2022-02-07
  • 2021-09-09
相关资源
相似解决方案