Browse Source

修改文件上传

hongze 1 year ago
parent
commit
943278dc2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/ai/ai_file.go

+ 1 - 1
controllers/ai/ai_file.go

@@ -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()