title: Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request body too large
body: <p>I'm trying to upload a 100MB film to my ASP.NET Core application.</p>
  <p>I've set this attribute on my action:</p>
  <pre class="lang-cs prettyprint-override"><code>[RequestSizeLimit(1_000_000_000)]
  </code></pre>
  <p>And I also changed my <code>Web.config</code> file to include:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;security&gt;
    &lt;requestFiltering&gt;
      &lt;!-- This will handle requests up to 700MB (CD700) --&gt;
      &lt;requestLimits maxAllowedContentLength=&quot;737280000&quot; /&gt;
    &lt;/requestFiltering&gt;
  &lt;/security&gt;
  </code></pre>
  <p>In other words, I've told IIS to allow files up to 700MBs and I've also told ASP.NET Core to allow files of near 1GB.</p>
  <p>But I still get that error. And I can't find the answer. Any ideas?</p>
  <p>P.S: Using these configurations, I could pass the 30MB default size. I can upload files of 50 or 70 Mega Bytes.</p>