如果我们使用IIS7和.Net Framework4,那么maxRequestLength的最大值是多少
发布于 2010-12-29 02:21:36
根据MSDN,默认值为4096 KB (4 MB)。
更新
至于最大值,因为它是int数据类型,所以理论上可以达到2,147,483,647。另外,我想确保您知道IIS7使用maxAllowedContentLength来指定file upload size。默认情况下,它被设置为约30MB的30000000,并且是一个单位,理论上它应该允许最大值为4,294,967,295
发布于 2011-11-09 15:44:14
最大为2097151,如果您尝试设置更多错误。
发布于 2015-01-05 20:54:41
这两个设置让我上传了1 1GB的mp4视频。
<system.web>
<httpRuntime maxRequestLength="2097152" requestLengthDiskThreshold="2097152" executionTimeout="240"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>
</system.webServer>https://stackoverflow.com/questions/4548305
复制相似问题