fix: typo in "file too big" error message (#6577)

Co-authored-by: Fabi <fabienne@zitadel.com>
This commit is contained in:
wackbyte 2023-09-18 09:08:32 -04:00 committed by GitHub
parent 3465264eef
commit 4bebcd6c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ func UploadHandleFunc(s AssetsService, uploader Uploader) func(http.ResponseWrit
return
}
if size > uploader.MaxFileSize() {
s.ErrorHandler()(w, r, fmt.Errorf("file to big, max file size is %vKB", uploader.MaxFileSize()/1024), http.StatusBadRequest)
s.ErrorHandler()(w, r, fmt.Errorf("file too big, max file size is %vKB", uploader.MaxFileSize()/1024), http.StatusBadRequest)
return
}