Skip to content

Commit 45a9a94

Browse files
committed
Change from int.MaxValue to long.MaxValue
1 parent fc29a2c commit 45a9a94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Web.Common/Security/ConfigureFormOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ConfigureFormOptions : IConfigureOptions<FormOptions>
1212
public void Configure(FormOptions options)
1313
{
1414
// convert from KB to bytes
15-
options.MultipartBodyLengthLimit = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : int.MaxValue;
15+
options.MultipartBodyLengthLimit = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
1616
}
1717
}
1818
}

src/Umbraco.Web.Common/Security/ConfigureIISServerOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ConfigureIISServerOptions : IConfigureOptions<IISServerOptions>
1212
public void Configure(IISServerOptions options)
1313
{
1414
// convert from KB to bytes
15-
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : int.MaxValue;
15+
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)