I found this useful announcement that confirms that the 28.6 MB body size limit starts with ASP.NET Core 2.0, but, more importantly, shows how to get around it!
Summarizing:
For a single controller or action, use the [DisableRequestSizeLimit] attribute to not have restrictions, or [RequestSizeLimit(100_000_000)] to specify a user limit.
To change it globally inside the BuildWebHost() method inside the Program.cs file, add the .UseKestrel parameter below:
WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>() .UseKestrel(options => { options.Limits.MaxRequestBodySize = null; }
For additional clarity, you can also refer to the Kestrel Version Documentation .
source share