Add MP4 as default allowed attachment type (#18170)

此提交包含在:
Gusted
2022-01-04 04:36:47 +01:00
提交者 GitHub
父節點 0848c716bf
當前提交 165346c15c
共有 3 個檔案被更改,包括 3 行新增3 行删除
+1 -1
查看文件
@@ -29,7 +29,7 @@ func newAttachmentService() {
Attachment.Storage = getStorage("attachments", storageType, sec)
Attachment.AllowedTypes = sec.Key("ALLOWED_TYPES").MustString(".docx,.gif,.gz,.jpeg,.jpg,.log,.pdf,.png,.pptx,.txt,.xlsx,.zip")
Attachment.AllowedTypes = sec.Key("ALLOWED_TYPES").MustString(".docx,.gif,.gz,.jpeg,.jpg,.mp4,.log,.pdf,.png,.pptx,.txt,.xlsx,.zip")
Attachment.MaxSize = sec.Key("MAX_SIZE").MustInt64(4)
Attachment.MaxFiles = sec.Key("MAX_FILES").MustInt(5)
Attachment.Enabled = sec.Key("ENABLED").MustBool(true)