title: How to increase an upload size in asp.net core 2+? Request entity too large
body: <p>I would like to increase the default upload size of 30MB in ASP.NET Core 2.0 web app. The proposed solutions like adding [RequestSizeLimit(4_100_000_000)] or adding </p>
  
  <pre><code>services.Configure&lt;FormOptions&gt;(x =&gt; x.MultipartBodyLengthLimit = 4074790400);
  </code></pre>
  
  <p>do not work in asp.net core 2.0. I guess those solutions are for .NET Core 1+ versions.</p>
  
  <p>I also added this into Program.cs, which is also proposed solution:</p>
  
  <pre><code>   public static IWebHost BuildWebHost(string[] args) =&gt;
          WebHost.CreateDefaultBuilder(args)
              .UseStartup&lt;Startup&gt;()
              .UseKestrel(options =&gt;
              {
                 options.Limits.MaxRequestBodySize = 4120100000;
              })
              .Build();
  </code></pre>
  
  <p>Although locally - using Visual studio docker debugger, I am able to upload files greater than 30 MB, in AWS environment I am getting again 413 Request Entity Too Large error.</p>