0

when allowing large uploads you can specify this in web.config in a mvc web application

httpRuntime maxRequestLength="xxx"

How do I do the same in appsettings.json

NOTE, this question is regarding .Net Core Web API using a program.cs and not MVC controllers.

MTplus
  • 2,077
  • 4
  • 34
  • 51
  • 1
    Closing as its all in the documentation https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-6.0#upload-large-files-with-streaming - takr @LeiYang's advice with the section **StreamingController.UploadPhysical** – Jeremy Thompson Feb 28 '22 at 06:57
  • I have edit the original question and clarified the question since this is not regarding mvc project – MTplus Feb 28 '22 at 07:35
  • maybe helps: [Post Stream in ASP.NET Core Web Api](https://stackoverflow.com/q/42271947/1518100) – Lei Yang Feb 28 '22 at 07:48
  • Sorry it does not – MTplus Feb 28 '22 at 08:15

0 Answers0