Explorar el Código

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

wangkaiyue hace 5 años
padre
commit
c1cea638d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {