how can i set upload limits and file types for uploads.
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.