▄▄             ▄▄▄  ▄▄▄ Power
█  █ ▄▄▄▄ ▄▄▄▄▄ █  █ █  █
█▄▄█ █▄▄▄ █ █ █ █▀▀▄ █▀▀▄
█  █ ▄▄▄█ █ █ █ █▄▄▀ █▄▄▀

Login
Register
/ aa about.it ad amd64 and.who api asm asmbb asmbb.features authentication bbcode best bugs cares chat common debian deck design dll docker email embed fast feature files fossil fresh.ide friendly gamedev heap help hiawatha i18n incredible interop learning libfresh limit links linux mailing.list meme meta.http-equiv minimag money mysql neo nginx numbers orly os outage pass password post-by-email programmers programming proile read-by-email resources safety script.alert.xss secret seo skins sodom source sourcecode subdirectory subforum support tags templates test test123 type very.ugly video work xss игнат котики парола русский тест уеб.програмиране хабр.наполеон
Categories Threads

how can i set upload limits and file types for uploads. RSS

how can i set upload limits and file types for uploads.

ufuk

how can i set upload limits and file types for uploads.

You can't set the file types. Everything can be attached. The file size limit is in the parameter max_attachment_size in the database. The default value is 1MB.

Insert it for the first time by:

insert into params values ('max_attachment_size', 1234567);

And change it by:

update params set val = 1234567 where id = 'max_attachment_size';

This parameter is not inserted by default.

johnfound
ufuk

how can i set upload limits and file types for uploads.

You can't set the file types. Everything can be attached. The file size limit is in the parameter max_attachment_size in the database. The default value is 1MB.

Insert it for the first time by:

insert into params values ('max_attachment_size', 1234567);

And change it by:

update params set val = 1234567 where id = 'max_attachment_size';

This parameter is not inserted by default.

i made but already i get this error 413 Request Entity Too Large

johnfound
ufuk

how can i set upload limits and file types for uploads.

You can't set the file types. Everything can be attached. The file size limit is in the parameter max_attachment_size in the database. The default value is 1MB.

Insert it for the first time by:

insert into params values ('max_attachment_size', 1234567);

And change it by:

update params set val = 1234567 where id = 'max_attachment_size';

This parameter is not inserted by default.

what is 1234567? is limit ? example 20, for 20mb.

What limit you set? Please, explain in more details. I can't read your mind actually.

johnfound

What limit you set? Please, explain in more details. I can't read your mind actually.

i runned this for 20 MB.

update params set val = 20 where id = 'max_attachment_size';

ufuk
johnfound

What limit you set? Please, explain in more details. I can't read your mind actually.

i runned this for 20 MB.

update params set val = 20 where id = 'max_attachment_size';

You simply set the limit to 20 bytes.

20MB = 20*1024*1024 = 20971520 bytes.

Categories Threads

how can i set upload limits and file types for uploads. RSS

AsmBB v2.5 (check-in: d3a7fac8228a901e); SQLite v3.27.2 (check-in: bd49a8271d650fa8);

©2016..2018 John Found; Licensed under EUPL.
Powered by Assembly language
Created with Fresh IDE

Icons are made by Egor Rumyantsev, vaadin and icomoon from www.flaticon.com