feat:完成企业和专家导入功能,缺少保存数据表中
This commit is contained in:
@ -52,7 +52,7 @@ func (this *UploadConfig) Handle() Handle {
|
|||||||
return nil, errors.New("文件类型限制不可上传")
|
return nil, errors.New("文件类型限制不可上传")
|
||||||
}
|
}
|
||||||
|
|
||||||
if !this.size(file.Size) {
|
if this.Size > 0 && !this.size(file.Size) {
|
||||||
return nil, errors.New("文件过大不可上传")
|
return nil, errors.New("文件过大不可上传")
|
||||||
}
|
}
|
||||||
// 判断目录是否存在
|
// 判断目录是否存在
|
||||||
|
Reference in New Issue
Block a user