From 23790c802986685e632523b5b662bb1f69e67e80 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 26 Apr 2024 16:59:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=81=EC=9D=B8,=EB=A1=9C=EA=B3=A0,=EA=B3=A0?= =?UTF-8?q?=EC=A7=80=EC=84=9C=EB=B0=B0=EA=B2=BD=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=A0=80=EC=9E=A5=EA=B2=BD=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/cmmn/web/StngController.java | 2 +- src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/fims/cmmn/web/StngController.java b/src/main/java/cokr/xit/fims/cmmn/web/StngController.java index 1379de20..0caa58da 100644 --- a/src/main/java/cokr/xit/fims/cmmn/web/StngController.java +++ b/src/main/java/cokr/xit/fims/cmmn/web/StngController.java @@ -156,7 +156,7 @@ public class StngController extends ApplicationController { ManagedUser currentUser = (ManagedUser) currentUser().getUser(); String sggCd = currentUser.getOrgID(); - String bgPath = "files/background/"+sggCd; + String bgPath = "files/etc/background/"+sggCd; String ext = FilenameUtils.getExtension(backgroundFile.getOriginalFilename()); String fileName = otptForm.getTaskSeCd()+"-"+otptForm.getSndngSeCd()+"-"+otptForm.getPaperSeCd()+"."+ext; diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java index f8cec35e..dfd55317 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java @@ -178,7 +178,7 @@ public class Mngt03Controller extends ApplicationController { private Map uploadForSgg(MultipartFile mf, String sggCd, String fileSe){ Map newFileInfoMap = new HashMap<>(); - String workDirPath = "files/"+fileSe; + String workDirPath = "files/etc/"+fileSe; String ext = FilenameUtils.getExtension(mf.getOriginalFilename()); String fileName = sggCd+"."+ext; @@ -192,13 +192,13 @@ public class Mngt03Controller extends ApplicationController { File newFile = new File(newFileFullPath); if(newFile.exists()) { if(!newFile.delete()) { - throw new RuntimeException("[F]배경 이미지 업로드 중 오류가 발생하였습니다."); + throw new RuntimeException("[F]이미지 업로드 중 오류가 발생하였습니다."); } } mf.transferTo(newFile); } catch (Exception e) { - throw new RuntimeException("[F]배경 이미지 업로드 중 오류가 발생하였습니다."); + throw new RuntimeException("[F]이미지 업로드 중 오류가 발생하였습니다."); } newFileInfoMap.put("filePath", newFileFullPath);