diff --git a/src/main/java/com/xit/biz/cmm/service/impl/CmmFileService.java b/src/main/java/com/xit/biz/cmm/service/impl/CmmFileService.java index eb7a7f4..417e672 100644 --- a/src/main/java/com/xit/biz/cmm/service/impl/CmmFileService.java +++ b/src/main/java/com/xit/biz/cmm/service/impl/CmmFileService.java @@ -42,7 +42,7 @@ public class CmmFileService implements ICmmFileService { String makePath = ""; if(files != null && files.length > 0){ - makePath = File.separator + DateUtil.getToday(""); + //makePath = File.separator + DateUtil.getToday(""); // 파일 경로 : upload root 제외 String urlPath = uploadPath + makePath; @@ -64,10 +64,10 @@ public class CmmFileService implements ICmmFileService { //Files.copy(multipartFile.getInputStream(), copyOfLocation, StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { - String errMsg = String.format("File Upload Error :: %s", orgFileName); + String errMsg = String.format("File Upload Error :: %s[ %s ]", e.getLocalizedMessage(), orgFileName); //TODO : 에러처리 //return RestError.of(String.format("File Upload Error :: %s", orgFileName)); - AssertUtils.isTrue(false, String.format("File Upload Error :: %s", orgFileName)); + AssertUtils.isTrue(false, errMsg); } } } diff --git a/src/main/java/com/xit/biz/ctgy/service/impl/CtgyFileService.java b/src/main/java/com/xit/biz/ctgy/service/impl/CtgyFileService.java index 8f9edcb..89fccd4 100644 --- a/src/main/java/com/xit/biz/ctgy/service/impl/CtgyFileService.java +++ b/src/main/java/com/xit/biz/ctgy/service/impl/CtgyFileService.java @@ -70,9 +70,10 @@ public class CtgyFileService implements ICtgyFileService { public List saveFiles(@Nonnull MinInfoBoard680Dto dto) { List entityList = new ArrayList<>(); MultipartFile[] files = dto.getFiles(); + String makePath = ""; if(files != null && files.length > 0){ - String makePath = File.separator + DateUtil.getToday(""); + //makePath = File.separator + DateUtil.getToday(""); // 파일 경로 : upload root 제외 String urlPath = this.uploadPath + makePath;