I am running an ASP.NET Core web app and want to upload large files.
I know that when running IIS, the limits can be changed via web.config
:
<httpRuntime maxRequestLength="1048576" />
...
<requestLimits maxAllowedContentLength="1073741824" />
How can you do the equivalent while running the new ASP.NET Core Kestrel web server?
I get the exception "Request body too large."
See Question&Answers more detail:os