Fix the Bug in IE browser.

This commit is contained in:
zicla
2018-12-11 01:36:53 +08:00
parent 2f794f549f
commit 2027b2139c
3 changed files with 26 additions and 2 deletions

View File

@ -124,6 +124,7 @@ func (this *MatterService) Upload(file multipart.File, user *User, puuid string,
panic("文件名不能超过200")
}
//获取文件应该存放在的物理路径的绝对路径和相对路径。
absolutePath, relativePath := GetUserFilePath(user.Username, false)
absolutePath = absolutePath + "/" + filename