1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-05 09:55:20 +02:00

more on change avatar

This commit is contained in:
Unknwon 2014-11-21 12:51:36 -05:00
parent 22ab4fa1b0
commit ef275ebf62
11 changed files with 42 additions and 18 deletions

View file

@ -163,6 +163,7 @@ func (u *User) UploadAvatar(data []byte) error {
return err
}
os.MkdirAll(setting.AvatarUploadPath, os.ModePerm)
fw, err := os.Create(savePath)
if err != nil {
sess.Rollback()