Skip to content

Commit 68dfc1f

Browse files
lng2020GiteaBot
authored andcommitted
Change default size of attachments and repo files (go-gitea#28100)
go-gitea#27946 forgets to change them in code. Sorry about that.
1 parent f7567f7 commit 68dfc1f

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)