Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Umbraco.Web.Common/Security/ConfigureFormOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public void Configure(FormOptions options) =>

// convert from KB to bytes
options.MultipartBodyLengthLimit = _runtimeSettings.Value.MaxRequestLength.HasValue
? _runtimeSettings.Value.MaxRequestLength.Value * 1024
? (long)_runtimeSettings.Value.MaxRequestLength.Value * 1024
: long.MaxValue;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void Configure(KestrelServerOptions options) =>

// convert from KB to bytes, 52428800 bytes (50 MB) is the same as in the IIS settings
options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue
? _runtimeSettings.Value.MaxRequestLength.Value * 1024
? (long)_runtimeSettings.Value.MaxRequestLength.Value * 1024
: 52428800;
}
Loading