This might be more of a generic .NET Core question.
Hopefully, someone had the same problem and found a solution
I'm using the RadzenUpload component. It works fine when I don't upload too much (< 32MB).
I've been searching how to increase this limit. So far I tried, without result:
- In Startup ConfigureServices:
services.AddSignalR(e => e.MaximumReceiveMessageSize = 102400000)
- In Startup ConfigureServices:
services.Configure<FormOptions>(options => { // Set the limit to 512 MB options.MultipartBodyLengthLimit = 536870912; });
- In Startup Configure:
app.Use(async (context, next) => { context.Features.Get<IHttpMaxRequestBodySizeFeature>() .MaxRequestBodySize = null; await next.Invoke(); });
- In my Upload controller:
[DisableRequestSizeLimit]
- In Program CreateHostBuilder:
webBuilder.ConfigureKestrel((context, options) => { options.Limits.MaxRequestBodySize = null; })
I'm facing this limit in my Visual Studio environment as well as on Azure.
Please advice.