]> source.dussan.org Git - gitea.git/commitdiff
Change default size of attachments and repo files (#28100)
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>
Fri, 17 Nov 2023 11:42:00 +0000 (19:42 +0800)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2023 11:42:00 +0000 (11:42 +0000)
https://github.com/go-gitea/gitea/pull/27946 forgets to change them in
code. Sorry about that.

modules/setting/attachment.go
modules/setting/repository.go

index 491564c9dcc08253925b2146fd1ea211330c1c76..007aae9d0440977fda7a9e35846f95906ca55d45 100644 (file)
@@ -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,
 }
index 42ffb99138a1345b75aed82fee00ae0e72d5b45a..9697a851d3ba98fe862fb7f53df848d626856729 100644 (file)
@@ -184,7 +184,7 @@ var (
                        Enabled:      true,
                        TempPath:     "data/tmp/uploads",
                        AllowedTypes: "",
-                       FileMaxSize:  3,
+                       FileMaxSize:  50,
                        MaxFiles:     5,
                },