diff options
author | silverwind <me@silverwind.io> | 2022-07-01 15:42:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 15:42:20 +0200 |
commit | 54e7483207343ff50d60dd5a54065df90c356943 (patch) | |
tree | 63876bfbf4fdad5d5e21ce172029bca4d4fa6507 /modules/setting/attachment.go | |
parent | 7c1f18a2bb409e2ed669c5e0e6ef8abc9e1a534b (diff) | |
download | gitea-54e7483207343ff50d60dd5a54065df90c356943.tar.gz gitea-54e7483207343ff50d60dd5a54065df90c356943.zip |
Update default allowed attachment types (#20192)
Synced the list to what is allowed on GitHub currently.
Diffstat (limited to 'modules/setting/attachment.go')
-rw-r--r-- | modules/setting/attachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go index c3c2c3fafd..474b73293c 100644 --- a/modules/setting/attachment.go +++ b/modules/setting/attachment.go @@ -27,7 +27,7 @@ func newAttachmentService() { Attachment.Storage = getStorage("attachments", storageType, sec) - Attachment.AllowedTypes = sec.Key("ALLOWED_TYPES").MustString(".docx,.gif,.gz,.jpeg,.jpg,.mp4,.log,.pdf,.png,.pptx,.txt,.xlsx,.zip") + 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,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.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) |