aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/attachment.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-07-01 15:42:20 +0200
committerGitHub <noreply@github.com>2022-07-01 15:42:20 +0200
commit54e7483207343ff50d60dd5a54065df90c356943 (patch)
tree63876bfbf4fdad5d5e21ce172029bca4d4fa6507 /modules/setting/attachment.go
parent7c1f18a2bb409e2ed669c5e0e6ef8abc9e1a534b (diff)
downloadgitea-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.go2
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)