Parcourir la source

Merge branch 'dev2.6.2' of ssh://192.168.3.207:10022/qmx/qfw into dev2.6.2

wangkaiyue il y a 5 ans
Parent
commit
c1cea638d7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/src/qfw/filemanage/uploadfile.go

+ 1 - 1
core/src/qfw/filemanage/uploadfile.go

@@ -28,7 +28,7 @@ func (m *Files) Upload() error {
 	res["msg"] = "上传失败"
 	if m.Method() == "POST" {
 		filetype := m.GetString("type")
-		if filetype == "cauditupload" {
+		if filetype == "cauditupload" || filetype == "courseFile" {
 			fileTypeArray = []string{"gif", "jpg", "jpeg", "png"}
 		}
 		if len(filetype) == 0 {