Closed TanvirArjel closed 4 years ago
You're probably hitting Kestrel's default 30 MB (~28.6 MiB) max request body size limit introduced in 2.0.0. You can change it in MVC with the RequestSizeLimitAttribute or disable it entirely with the DisableRequestSizeLimitAttribute.
I am trying to upload a file with size more than 30 MB and its throwing the following exception:
Then I have configured as follows:
But still not working!
I have also tried as follows:
And
But still nothing is working!
Above configurations have been tried in ASP.NET Core 2.1,2.2,3.0 and 3.1 versions but did not work with any of them.