maxRequestLength的最大价值?价值、最大、maxRequestLength

2023-09-02 11:51:51 作者:前许你春秋

如果我们使用的是IIS 7和.NET Framework 4,会是怎样的maxRequestLength的最大值?

If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength?

推荐答案

按MSDN默认值是4096 KB(4 MB)。

As per MSDN the default value is 4096 KB (4 MB).

更新

对于最大的,因为它是一个int数据类型,那么理论上你可以去到2,147,483,647。此外,我想确保你知道,IIS 7使用 maxAllowedContentLength 指定文件上传大小。默认情况下它被设置为3000 30MB左右,并作为一个UINT,它应该从理论上允许一个最大的4,294,967,295

As for the Maximum, since it is an int data type, then theoretically you can go up to 2,147,483,647. Also I wanted to make sure that you are aware that IIS 7 uses maxAllowedContentLength for specifying file upload size. By default it is set to 30000000 around 30MB and being an uint, it should theoretically allow a max of 4,294,967,295