|
|
@ -116,7 +116,7 @@ public class uploadController {
|
|
|
|
return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件只能是 jpg,png,doc,pdf 格式");
|
|
|
|
return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件只能是 jpg,png,doc,pdf 格式");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String newName = UUID.randomUUID() + fileType;//生成新文件名
|
|
|
|
String newName = UUID.randomUUID() + fileType;//生成新文件名
|
|
|
|
String savePath = "d:/1s/udiwms/register/file/" + type;
|
|
|
|
String savePath = filePath + "/register/" + type;
|
|
|
|
|
|
|
|
|
|
|
|
File file1 = new File(savePath);
|
|
|
|
File file1 = new File(savePath);
|
|
|
|
if (!file1.exists()) {// 判断目录是否存在
|
|
|
|
if (!file1.exists()) {// 判断目录是否存在
|
|
|
|