..:: AsmBB ::..: how can i set upload limits and file types for uploads.
<img src="https://board.asm32.info/images/title.svg" alt="Title img">
<h1>AsmBB is ultrafast web forum, written entirely in assembly language. This site is the official support development forum and demo/test installation.</h1>
tag:board.asm32.info,2018-03-06:Thread2422018-11-18T19:24:57Zjohnfound on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156412018-11-18T19:24:57Z
<blockquote><header>ufuk</header><blockquote><header>johnfound</header><p>What limit you set? Please, explain in more details. I can't read your mind actually.
</p></blockquote>
<p>i runned this for 20 MB.
</p>
<p>update params set val = 20 where id = 'max_attachment_size';
</p></blockquote>
<p>You simply set the limit to 20 bytes.
</p>
<p>20MB = 20*1024*1024 = 20971520 bytes.</p>
johnfoundufuk on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156392018-11-18T19:17:08Z
<blockquote><header>johnfound</header><p>What limit you set? Please, explain in more details. I can't read your mind actually.
</p></blockquote>
<p>i runned this for 20 MB.
</p>
<p>update params set val = 20 where id = 'max_attachment_size';</p>
ufukjohnfound on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156382018-11-18T19:16:09Z
<p>What limit you set? Please, explain in more details. I can't read your mind actually.</p>
johnfoundufuk on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156372018-11-18T19:16:01Z
<blockquote><header>johnfound</header><blockquote><header>ufuk</header><p>how can i set upload limits and file types for uploads.
</p></blockquote>
<p>You can't set the file types. Everything can be attached. The file size limit is in the parameter <code>max_attachment_size</code> in the database. The default value is 1MB.
</p>
<p>Insert it for the first time by:
</p><pre><code class="">insert into params values ('max_attachment_size', 1234567);
</code></pre>
<p>And change it by:
</p>
<pre><code class="">update params set val = 1234567 where id = 'max_attachment_size';
</code></pre>
<p>This parameter is not inserted by default.
</p></blockquote>
<p>what is 1234567? is limit ? example 20, for 20mb.</p>
ufukufuk on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156362018-11-18T19:14:52Z
<blockquote><header>johnfound</header><blockquote><header>ufuk</header><p>how can i set upload limits and file types for uploads.
</p></blockquote>
<p>You can't set the file types. Everything can be attached. The file size limit is in the parameter <code>max_attachment_size</code> in the database. The default value is 1MB.
</p>
<p>Insert it for the first time by:
</p><pre><code class="">insert into params values ('max_attachment_size', 1234567);
</code></pre>
<p>And change it by:
</p>
<pre><code class="">update params set val = 1234567 where id = 'max_attachment_size';
</code></pre>
<p>This parameter is not inserted by default.
</p></blockquote>
<p>i made but already i get this error 413 Request Entity Too Large
</p>
ufukjohnfound on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156352018-11-18T19:11:02Z
<blockquote><header>ufuk</header><p>how can i set upload limits and file types for uploads.
</p></blockquote>
<p>You can't set the file types. Everything can be attached. The file size limit is in the parameter <code>max_attachment_size</code> in the database. The default value is 1MB.
</p>
<p>Insert it for the first time by:
</p><pre><code class="">insert into params values ('max_attachment_size', 1234567);
</code></pre>
<p>And change it by:
</p>
<pre><code class="">update params set val = 1234567 where id = 'max_attachment_size';
</code></pre>
<p>This parameter is not inserted by default.</p>
johnfoundufuk on how can i set upload limits and file types for uploads.tag:board.asm32.info,2018-03-06:Post156332018-11-18T19:03:59Z
<p>how can i set upload limits and file types for uploads.</p>
ufuk