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