|
@@ -1025,7 +1025,7 @@ func (this *ResourceController) ResourceUpload() {
|
|
|
ext := path.Ext(h.Filename)
|
|
|
ossFileName := utils.GetRandStringNoSpecialChar(28) + ext
|
|
|
filePath := uploadDir + "/" + ossFileName
|
|
|
- if e = this.SaveToFile("file", filePath); e != nil {
|
|
|
+ if e = this.SaveToFile("File", filePath); e != nil {
|
|
|
br.Msg = "文件保存失败"
|
|
|
br.ErrMsg = "文件保存失败, Err:" + e.Error()
|
|
|
return
|