Answers for "increase timeout in .net core web app"

C#
1

increase timeout in .net core web app

services.Configure<FormOptions>(options =>
{
    options.ValueLengthLimit = int.MaxValue;
    options.MultipartBodyLengthLimit = long.MaxValue; // <-- ! long.MaxValue
    options.MultipartBoundaryLengthLimit = int.MaxValue;
    options.MultipartHeadersCountLimit = int.MaxValue;
    options.MultipartHeadersLengthLimit = int.MaxValue;
});
Posted by: Guest on October-21-2021
1

increase timeout in .net core web app

<security>
    <requestFiltering>
      <!-- This will handle requests up to 300MB -->
      <requestLimits maxAllowedContentLength="314572800" />
    </requestFiltering>
</security>
Posted by: Guest on October-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language