chore: remote context.Context pointer (#2448)

remote context.Context pointer
This commit is contained in:
Athurg Gooth
2023-10-26 20:21:44 +08:00
committed by GitHub
parent bfdb33f26b
commit 215981dfde
4 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ func (s *APIV1Service) UploadResource(c echo.Context) error {
}
// This is the backend default max upload size limit.
maxUploadSetting := s.Store.GetSystemSettingValueWithDefault(&ctx, SystemSettingMaxUploadSizeMiBName.String(), "32")
maxUploadSetting := s.Store.GetSystemSettingValueWithDefault(ctx, SystemSettingMaxUploadSizeMiBName.String(), "32")
var settingMaxUploadSizeBytes int
if settingMaxUploadSizeMiB, err := strconv.Atoi(maxUploadSetting); err == nil {
settingMaxUploadSizeBytes = settingMaxUploadSizeMiB * MebiByte