<h4 dir="auto">Summary</h4>
<p dir="auto"><code class="notranslate">maxBodyLength</code> is a option for <a href="https://www.npmjs.com/package/follow-redirects#options" rel="nofollow">follow-redirect</a> which is default transport for axios in node.js environment.</p>
<p dir="auto">so, can't upload file &gt; 10M</p>
<h4 dir="auto">Context</h4>
<ul dir="auto">
<li>axios version: all version</li>
<li>Environment: node all version</li>
</ul>
<h4 dir="auto">Summary</h4>
<p dir="auto"><code class="notranslate">follow-redirects</code> defaults to a <code class="notranslate">maxBodyLength</code> of 10mb.  <code class="notranslate">axios</code> does not override this default, even when the config specifies a <code class="notranslate">maxContentLength</code> parameter greater than 10mb, thus capping <code class="notranslate">axios</code> at a maximum content length of 10mb no matter what is configured, and returning an error that does not make it obvious that <code class="notranslate">follow-redirects</code> is the cause.</p>
<p dir="auto"><code class="notranslate">axios</code> should set the <code class="notranslate">maxBodyLength</code> option sent to <code class="notranslate">follow-redirects</code> to match the <code class="notranslate">maxContentLength</code> config property set on the <code class="notranslate">AxiosOptions</code> object.</p>
<h4 dir="auto">Context</h4>
<ul dir="auto">
<li>axios version: <em>v0.17.1</em></li>
<li>Environment: <em>Electron v1.4.3 or Node v6.5.0 with XHR polyfill, macOS v10.13.2</em></li>
</ul>
<h4 dir="auto">Status</h4>
<p dir="auto">Pull request: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="287796636" data-permission-text="Title is private" data-url="https://github.com/axios/axios/issues/1287" data-hovercard-type="pull_request" data-hovercard-url="/axios/axios/pull/1287/hovercard" href="https://github.com/axios/axios/pull/1287">#1287</a></p>