2018-08-28

问题:上传文件过大导致上传不了,直接在webconfig里做以下配置会导致程序出错,这个需要在IIS里配置

  <system.web>  
    <httpRuntime maxRequestLength="20480" targetFramework="4.5" />  
  </system.web>

 

步骤:

1、在iis里点开配置编辑器

IIS配置文件上传大小限制

2、在system.web/httpRuntime 节点下找到以下配置项,设置文件大小。(1M = 1024K)

IIS配置文件上传大小限制

 

 结果在webconfig里会多出该节点

  <system.web>  
    <httpRuntime maxRequestLength="20480" targetFramework="4.5" />  
  </system.web>

 

 

 

 

 

 

相关文章:

  • 2021-08-16
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-11-20
  • 2021-05-26
相关资源
相似解决方案