maxRequestLength 的最大值?
如果我们使用 IIS 7 和 .Net Framework 4,maxRequestLength
的最大值是多少?
If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
最大为2097151,如果尝试设置更多会发生错误。
Maximum is 2097151, If you try set more error occurred.
这两个设置适合我上传 1GB mp4 视频。
These two settings worked for me to upload 1GB mp4 videos.
根据 MSDN 默认值为4096 KB (4 MB)。
UPDATE
至于最大值,由于它是 int 数据类型,那么理论上最多可以达到 2,147,483,647。另外我想确保您知道 IIS 7 使用 maxAllowedContentLength 用于指定文件上传大小。默认情况下,它设置为 30000000 大约 30MB,并且是一个 uint,理论上它应该允许最大值 4,294,967,295
As per MSDN the default value is 4096 KB (4 MB).
UPDATE
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
2,147,483,647 字节,因为该值是有符号整数 (Int32)。这可能比您需要的更多。
2,147,483,647 bytes, since the value is a signed integer (Int32). That's probably more than you'll need.
正确的值如下。 (尝试过)
Right value is below. (Tried)