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>