diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 9daee78c8..a1af59185 100644 --- a/model/config.go +++ b/model/config.go @@ -236,6 +236,8 @@ type PasswordSettings struct { type FileSettings struct { EnableFileAttachments *bool + EnableMobileUpload *bool + EnableMobileDownload *bool MaxFileSize *int64 DriverName string Directory string @@ -539,6 +541,16 @@ func (o *Config) SetDefaults() { *o.FileSettings.EnableFileAttachments = true } + if o.FileSettings.EnableMobileUpload == nil { + o.FileSettings.EnableMobileUpload = new(bool) + *o.FileSettings.EnableMobileUpload = true + } + + if o.FileSettings.EnableMobileDownload == nil { + o.FileSettings.EnableMobileDownload = new(bool) + *o.FileSettings.EnableMobileDownload = true + } + if o.FileSettings.MaxFileSize == nil { o.FileSettings.MaxFileSize = new(int64) *o.FileSettings.MaxFileSize = 52428800 // 50 MB |