3 回答

TA貢獻(xiàn)1824條經(jīng)驗(yàn) 獲得超8個(gè)贊
<configuration> <system.web> <httpRuntime maxRequestLength="1048576" /> </system.web></configuration>
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1073741824" /> </requestFiltering> </security> </system.webServer>
注:
maxRequestLength
測(cè)量值 千字節(jié)
maxAllowedContentLength
測(cè)量值 字節(jié)

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超2個(gè)贊
system.web
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
system.webServer
<security> <requestFiltering> <requestLimits maxAllowedContentLength="1073741824" /> </requestFiltering></security>
重要

TA貢獻(xiàn)1895條經(jīng)驗(yàn) 獲得超7個(gè)贊
<location path="Documents/Upload"> <system.web> <!-- 50MB in kilobytes, default is 4096 or 4MB--> <httpRuntime maxRequestLength="51200" /> </system.web> <system.webServer> <security> <requestFiltering> <!-- 50MB in bytes, default is 30000000 or approx. 28.6102 Mb--> <requestLimits maxAllowedContentLength="52428800" /> </requestFiltering> </security> </system.webServer></location>
- 3 回答
- 0 關(guān)注
- 1228 瀏覽
添加回答
舉報(bào)