ソースを参照

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>
tags/v1.21.1
Giteabot 7ヶ月前
コミット
56bedf2bcc
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更2行の追加2行の削除
  1. 1
    1
      modules/setting/attachment.go
  2. 1
    1
      modules/setting/repository.go

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

+ 1
- 1
modules/setting/repository.go ファイルの表示

@@ -184,7 +184,7 @@ var (
Enabled: true,
TempPath: "data/tmp/uploads",
AllowedTypes: "",
FileMaxSize: 3,
FileMaxSize: 50,
MaxFiles: 5,
},


読み込み中…
キャンセル
保存