We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[attachment].MAX_SIZE
1 parent 6c98e93 commit cf22536Copy full SHA for cf22536
modules/setting/attachment.go
@@ -26,7 +26,7 @@ func loadAttachmentFrom(rootCfg ConfigProvider) (err error) {
26
}
27
28
Attachment.AllowedTypes = sec.Key("ALLOWED_TYPES").MustString(".csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip")
29
- Attachment.MaxSize = sec.Key("MAX_SIZE").MustInt64(4)
+ Attachment.MaxSize = sec.Key("MAX_SIZE").MustInt64(2048)
30
Attachment.MaxFiles = sec.Key("MAX_FILES").MustInt(5)
31
Attachment.Enabled = sec.Key("ENABLED").MustBool(true)
32
0 commit comments