<p>the webservice works just fine on my computer but after it's deployed it doesn't work anymore and throw this error <code>413 Request Entity Too Large</code> I added this code to <code>startup.cs</code> file</p>
<pre><code>services.Configure&lt;FormOptions&gt;(x =&gt; 
            {
                x.ValueLengthLimit = int.MaxValue;
                x.MultipartBodyLengthLimit = int.MaxValue;
                x.MemoryBufferThreshold = int.MaxValue;
                x.MultipartBoundaryLengthLimit = 209715200;
            });
</code></pre>
<p>but didn't help at all . So after some research I added <code>nginx.ingress.kubernetes.io/proxy-body-size: &quot;100m&quot;</code> to <code>deployment.yaml</code> but also didn't help</p>

Thameur Saadi
<p>You can do this:
Login server:</p>
<blockquote>
<p>sudo nano /etc/nginx/nginx.conf</p>
</blockquote>
<p>Set:</p>
<blockquote>
<p>client_max_body_size 2M;</p>
</blockquote>
<p>This working with me.</p>
