|
@@ -50,7 +50,7 @@ func (this *AiFileController) FileUpload() {
|
|
|
fileName := randStr + ext
|
|
|
fpath := uploadDir + "/" + fileName
|
|
|
defer f.Close() //关闭上传文件
|
|
|
- err = this.SaveToFile("file", fpath)
|
|
|
+ err = this.SaveToFile("File", fpath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|
|
|
br.ErrMsg = "文件上传失败,Err:" + err.Error()
|