More avatar providers #622

Merged
konrad merged 28 commits from feature/avatar into master 2020-08-02 17:17:04 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 92ea31a3aa - Show all commits

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