Hi.
To address the request body size limit issue in an ASP.NET Core 8 application hosted on Azure App Service, you can increase this limit in your code. In the Program.cs
file, configure the maximum allowed request body size using services.Configure<FormOptions>(options => { options.MultipartBodyLengthLimit = 104857600; });
, where 104857600
represents 100 MB. Also, ensure that you verify the Azure App Service configuration, although the main adjustment is typically done in the application code.
// Configure services``
builder.Services.Configure<FormOptions>(options => { ``// Set the maximum file size (e.g., 100 MB)`` options.MultipartBodyLengthLimit = ``104857600``; ``// 100 MB
});