diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-21 12:51:36 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-21 12:51:36 -0500 |
commit | ef275ebf62608b1bd2c7e48862e723cd822d93c2 (patch) | |
tree | 1ff4e8cd2a7b85b85b19d03855cb51e6327c3e8a /models/user.go | |
parent | 22ab4fa1b0bdbea10979ae87568452b5bbf9b6af (diff) | |
download | gitea-ef275ebf62608b1bd2c7e48862e723cd822d93c2.tar.gz gitea-ef275ebf62608b1bd2c7e48862e723cd822d93c2.zip |
more on change avatar
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go index 1337ca2350..c68ae31067 100644 --- a/models/user.go +++ b/models/user.go @@ -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() |