Change from int.MaxValue to long.MaxValue

This commit is contained in:
Elitsa Marinovska
2021-09-15 10:41:58 +02:00
parent fc29a2ccd7
commit 45a9a94aba
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}
}
}

View File

@@ -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;
}
}
}