Actually enforce upload file size limit (#122)

This commit is contained in:
Noah van der Aa
2022-02-21 23:59:28 +01:00
committed by GitHub
parent f85509a0c7
commit 067ca5bb60
2 changed files with 11 additions and 2 deletions

View File

@@ -89,8 +89,8 @@ type ApiConfiguration struct {
// servers.
DisableRemoteDownload bool `json:"disable_remote_download" yaml:"disable_remote_download"`
// The maximum size for files uploaded through the Panel in bytes.
UploadLimit int `default:"100" json:"upload_limit" yaml:"upload_limit"`
// The maximum size for files uploaded through the Panel in MB.
UploadLimit int64 `default:"100" json:"upload_limit" yaml:"upload_limit"`
}
// RemoteQueryConfiguration defines the configuration settings for remote requests