Mid ASP.NET Core

What are the default limits for file upload sizes, and how to?

configure them

  • Default max request body size is 30 MB.
  • Configure via RequestSizeLimit attribute or

KestrelServerOptions.Limits.MaxRequestBodySize.

  • For IIS, adjust maxAllowedContentLength.

More from ASP.NET Core Tutorial

All questions for this course