Skip to content

Commit 56bedf2

Browse files
GiteaBotlng2020
andauthored
Change default size of attachments and repo files (#28100) (#28106)
Backport #28100 by @lng2020 #27946 forgets to change them in code. Sorry about that. Co-authored-by: Nanguan Lin <[email protected]>
1 parent f7567f7 commit 56bedf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/setting/attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var Attachment = struct {
1313
}{
1414
Storage: &Storage{},
1515
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",
16-
MaxSize: 4,
16+
MaxSize: 2048,
1717
MaxFiles: 5,
1818
Enabled: true,
1919
}

modules/setting/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ var (
184184
Enabled: true,
185185
TempPath: "data/tmp/uploads",
186186
AllowedTypes: "",
187-
FileMaxSize: 3,
187+
FileMaxSize: 50,
188188
MaxFiles: 5,
189189
},
190190

0 commit comments

Comments
 (0)