Fix encoding

This commit is contained in:
kolaente 2020-08-02 14:21:26 +02:00
parent 3138f6324d
commit 92ea31a3aa
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ func UploadAvatar(c echo.Context) (err error) {
}
// Save the file
f, err := files.CreateWithMime(buf, file.Filename, uint64(file.Size), u, mime.String())
f, err := files.CreateWithMime(buf, file.Filename, uint64(file.Size), u, "image/png")
if err != nil {
if files.IsErrFileIsTooLarge(err) {
return echo.ErrBadRequest