AsmBB

Power
Login Register

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

#15633 (ツ) ufuk
Created 18.11.2018, read: 2104 times

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

#15635 (ツ) johnfound
Last edited: 18.11.2018 by johnfound, read: 2103 times
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.

#15636 (ツ) ufuk
Created 18.11.2018, read: 2100 times
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

#15637 (ツ) ufuk
Last edited: 18.11.2018 by ufuk, read: 2100 times
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.

#15638 (ツ) johnfound
Created 18.11.2018, read: 2100 times

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

#15639 (ツ) ufuk
Created 18.11.2018, read: 2099 times
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';

#15641 (ツ) johnfound
Created 18.11.2018, read: 2098 times
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.

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

AsmBB v2.9 (check-in: 6d407831308ba556); SQLite v3.31.1 (check-in: 3bfa9cc97da10598);
©2016..2020 John Found; Licensed under EUPL. Powered by Assembly language Created with Fresh IDE