<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Limit File Upload Size in Nginx	</title>
	<atom:link href="https://www.tecmint.com/limit-file-upload-size-in-nginx/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/limit-file-upload-size-in-nginx/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 06 Mar 2025 04:04:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-2284227</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Thu, 06 Mar 2025 04:04:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=30364#comment-2284227</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-2284141&quot;&gt;Sunny&lt;/a&gt;.

@Sunny,

It looks like your Nginx configuration change isn&#039;t being applied correctly. 

Here are a few things to check:

1. Ensure that you added &lt;code&gt;client_max_body_size 200M;&lt;/code&gt; in the correct Nginx configuration file, typically inside the &lt;code&gt;server&lt;/code&gt; or &lt;code&gt;http&lt;/code&gt; block.

2. If you&#039;re running PHP, make sure your &lt;code&gt;php.ini&lt;/code&gt; file has the correct settings:
&lt;pre&gt;
upload_max_filesize = 200M
post_max_size = 200M
&lt;/pre&gt;
3. After making changes, restart Nginx to apply them:
&lt;pre&gt;
sudo systemctl restart nginx
&lt;/pre&gt;
4. Check the Nginx error log for any relevant messages:
&lt;pre&gt;
sudo tail -f /var/log/nginx/error.log
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-2284141">Sunny</a>.</p>
<p>@Sunny,</p>
<p>It looks like your Nginx configuration change isn&#8217;t being applied correctly. </p>
<p>Here are a few things to check:</p>
<p>1. Ensure that you added <code>client_max_body_size 200M;</code> in the correct Nginx configuration file, typically inside the <code>server</code> or <code>http</code> block.</p>
<p>2. If you&#8217;re running PHP, make sure your <code>php.ini</code> file has the correct settings:</p>
<pre>
upload_max_filesize = 200M
post_max_size = 200M
</pre>
<p>3. After making changes, restart Nginx to apply them:</p>
<pre>
sudo systemctl restart nginx
</pre>
<p>4. Check the Nginx error log for any relevant messages:</p>
<pre>
sudo tail -f /var/log/nginx/error.log
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sunny		</title>
		<link>https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-2284141</link>

		<dc:creator><![CDATA[Sunny]]></dc:creator>
		<pubDate>Wed, 05 Mar 2025 19:34:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=30364#comment-2284141</guid>

					<description><![CDATA[I added &lt;code&gt;client_max_body_size 200M&lt;/code&gt; and after that it only uploads file upto &lt;strong&gt;30MB&lt;/strong&gt; any thing over would send a null file to my controller.]]></description>
			<content:encoded><![CDATA[<p>I added <code>client_max_body_size 200M</code> and after that it only uploads file upto <strong>30MB</strong> any thing over would send a null file to my controller.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: musgan		</title>
		<link>https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-2023666</link>

		<dc:creator><![CDATA[musgan]]></dc:creator>
		<pubDate>Thu, 08 Jun 2023 09:19:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=30364#comment-2023666</guid>

					<description><![CDATA[Thanks, brother,  worked for my docker.]]></description>
			<content:encoded><![CDATA[<p>Thanks, brother,  worked for my docker.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dilanga		</title>
		<link>https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-1737324</link>

		<dc:creator><![CDATA[Dilanga]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 06:56:24 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=30364#comment-1737324</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-1342505&quot;&gt;DIMM_V2&lt;/a&gt;.

htaccess is not even a part of Nginx. It&#039;s an Apache config file.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-1342505">DIMM_V2</a>.</p>
<p>htaccess is not even a part of Nginx. It&#8217;s an Apache config file.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: DIMM_V2		</title>
		<link>https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-1342505</link>

		<dc:creator><![CDATA[DIMM_V2]]></dc:creator>
		<pubDate>Sun, 05 Jul 2020 19:14:33 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=30364#comment-1342505</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-1341899&quot;&gt;Aaron Kili&lt;/a&gt;.

Hi, I finally got the working solution!

Php File Limit upload in TerraMaster webserver

Problem by default it was limited to 2 MB;

None of these settings can’t help:
&lt;pre&gt;
upload_max_filesize 10M
value post_max_size 10M
php_value memory_limit 32M 
client_max_body_size
&lt;/pre&gt; 
The Solution Is:

Create file “&lt;strong&gt;.htaccess&lt;/strong&gt;“ on your root webserver , not at the root but at the root of your webserver  ex : “&lt;strong&gt;/mnt/md2/HD1/Web&lt;/strong&gt;”.

Create these settings inside.
&lt;pre&gt;
php_value upload_max_filesize 102M
php_value post_max_size 102M
php_value memory_limit 64M
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/limit-file-upload-size-in-nginx/comment-page-1/#comment-1341899">Aaron Kili</a>.</p>
<p>Hi, I finally got the working solution!</p>
<p>Php File Limit upload in TerraMaster webserver</p>
<p>Problem by default it was limited to 2 MB;</p>
<p>None of these settings can’t help:</p>
<pre>
upload_max_filesize 10M
value post_max_size 10M
php_value memory_limit 32M 
client_max_body_size
</pre>
<p>The Solution Is:</p>
<p>Create file “<strong>.htaccess</strong>“ on your root webserver , not at the root but at the root of your webserver  ex : “<strong>/mnt/md2/HD1/Web</strong>”.</p>
<p>Create these settings inside.</p>
<pre>
php_value upload_max_filesize 102M
php_value post_max_size 102M
php_value memory_limit 64M
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
