2018-08-28web
问题:上传文件过大致使上传不了,直接在webconfig里作如下配置会致使程序出错,这个须要在IIS里配置编辑器
<system.web> <httpRuntime maxRequestLength="20480" targetFramework="4.5" /> </system.web>
步骤:spa
一、在iis里点开配置编辑器code
二、在system.web/httpRuntime 节点下找到如下配置项,设置文件大小。(1M = 1024K)blog
结果在webconfig里会多出该节点get
<system.web> <httpRuntime maxRequestLength="20480" targetFramework="4.5" /> </system.web>