diff options
author | Giteabot <teabot@gitea.io> | 2023-11-17 20:30:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 13:30:42 +0100 |
commit | 56bedf2bccc7b9a98b94d1d5016231e7b68cd75d (patch) | |
tree | b75e9960b483dfe83048e7e7465106866ad1cd05 | |
parent | f7567f798d0d9dd3379051121b8b89abf09f938f (diff) | |
download | gitea-56bedf2bccc7b9a98b94d1d5016231e7b68cd75d.tar.gz gitea-56bedf2bccc7b9a98b94d1d5016231e7b68cd75d.zip |
Change default size of attachments and repo files (#28100) (#28106)
Backport #28100 by @lng2020
https://github.com/go-gitea/gitea/pull/27946 forgets to change them in
code. Sorry about that.
Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
-rw-r--r-- | modules/setting/attachment.go | 2 | ||||
-rw-r--r-- | modules/setting/repository.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go index 491564c9dc..007aae9d04 100644 --- a/modules/setting/attachment.go +++ b/modules/setting/attachment.go @@ -13,7 +13,7 @@ var Attachment = struct { }{ Storage: &Storage{}, AllowedTypes: ".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", - MaxSize: 4, + MaxSize: 2048, MaxFiles: 5, Enabled: true, } diff --git a/modules/setting/repository.go b/modules/setting/repository.go index 42ffb99138..9697a851d3 100644 --- a/modules/setting/repository.go +++ b/modules/setting/repository.go @@ -184,7 +184,7 @@ var ( Enabled: true, TempPath: "data/tmp/uploads", AllowedTypes: "", - FileMaxSize: 3, + FileMaxSize: 50, MaxFiles: 5, }, |