上报库-参数到处模板-附件上传
This commit is contained in:
+10
@@ -111,6 +111,16 @@ public class OSSFileServiceImpl extends ServiceImpl<OSSFileMapper, OSSFile> impl
|
||||
throw new JeroBootException("Only upload pdf,word,excel type of file Please select the file again!");
|
||||
}
|
||||
}
|
||||
} else if ("2".equals(state)) {
|
||||
String fileTypeStrTwo = ".doc,.DOC,.docx,.DOCX,.xls, .XLS,.xlsx,.XLSX";
|
||||
//固定文件
|
||||
if (!fileTypeStrTwo.contains(fileType)) {
|
||||
if (cut.equals(CutEnum.CN.getValue())) {
|
||||
throw new JeroBootException("只能够上传word,excel类型的文件。请重新选择文件!");
|
||||
} else {
|
||||
throw new JeroBootException("Only upload word,excel type of file Please select the file again!");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (CommonUtils.limitFileSuffix(orgName, fileSuffixLimits)) {
|
||||
if (cut.equals(CutEnum.CN.getValue())) {
|
||||
|
||||
Reference in New Issue
Block a user