IIS can only handle ~4GB uploads. No good documentation, but found a couple of places documenting this. E.g. https://newbedev.com/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7

This commit is contained in:
Bjarke Berg
2021-09-20 08:39:59 +02:00
parent e960ca6fdb
commit 0a042b2c37

View File

@@ -12,7 +12,8 @@ namespace Umbraco.Cms.Web.Common.Security
public void Configure(IISServerOptions options)
{
// convert from KB to bytes
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : uint.MaxValue; // ~4GB is the max supported value for IIS and IIS express.
//options.IisMaxRequestSizeLimit
}
}
}