mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-24 18:25:01 +08:00
fix:1、修复附件无法同时上传多个的BUG
2、新增客户端校验附件大小
This commit is contained in:
@@ -186,6 +186,9 @@ func IsAllowUploadFileExt(ext string) bool {
|
||||
exts := GetUploadFileExt()
|
||||
|
||||
for _, item := range exts {
|
||||
if item == "*" {
|
||||
return true
|
||||
}
|
||||
if strings.EqualFold(item, ext) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user