summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-01-04 03:36:47 +0000
committerGitHub <noreply@github.com>2022-01-04 04:36:47 +0100
commit165346c15c6d021028a65121e692a17ffc927e2c (patch)
tree7b983ce6987940224e9f4e21a9740304e243a021 /modules
parent0848c716bf68b94b703072fdb07bc282e20e1290 (diff)
downloadgitea-165346c15c6d021028a65121e692a17ffc927e2c.tar.gz
gitea-165346c15c6d021028a65121e692a17ffc927e2c.zip
Add MP4 as default allowed attachment type (#18170)
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/attachment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go
index 98c4be94e9..409c2b87e5 100644
--- a/modules/setting/attachment.go
+++ b/modules/setting/attachment.go
@@ -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)