Change from int.MaxValue to long.MaxValue
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Umbraco.Cms.Web.Common.Security
|
||||
public void Configure(FormOptions options)
|
||||
{
|
||||
// convert from KB to bytes
|
||||
options.MultipartBodyLengthLimit = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : int.MaxValue;
|
||||
options.MultipartBodyLengthLimit = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ 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 : int.MaxValue;
|
||||
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user