xyxie 6 luni în urmă
părinte
comite
19a56bf34f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      controllers/knowledge/resource.go

+ 1 - 1
controllers/knowledge/resource.go

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