Skip to content

Commit f63b116

Browse files
authored
Change default size of attachments and repo files (#28100)
#27946 forgets to change them in code. Sorry about that.
1 parent 58f5fa6 commit f63b116

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/setting/attachment.go

+1-1
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

+1-1
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)