From f3d5be8a84c96e84535d659225e944d8ec819bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=EA=B4=80=ED=9D=AC?= Date: Wed, 2 Oct 2024 01:11:42 +0900 Subject: [PATCH] =?UTF-8?q?fix(File):=20=ED=8C=8C=EC=9D=BC=20=EA=B6=8C?= =?UTF-8?q?=ED=95=9C=20=EC=84=A4=EC=A0=95=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stempo/api/domain/application/handler/FileHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/stempo/api/domain/application/handler/FileHandler.java b/src/main/java/com/stempo/api/domain/application/handler/FileHandler.java index d10a3d54..7919ce11 100644 --- a/src/main/java/com/stempo/api/domain/application/handler/FileHandler.java +++ b/src/main/java/com/stempo/api/domain/application/handler/FileHandler.java @@ -48,7 +48,7 @@ public String saveFile(MultipartFile multipartFile, String category) throws IOEx File file = new File(savePath); FileUtil.ensureParentDirectoryExists(file, filePath); multipartFile.transferTo(file); - FileUtil.setFilePermissions(file, savePath, extension); + FileUtil.setFilePermissions(file, savePath, filePath); return savePath; } @@ -64,7 +64,7 @@ public String saveFile(File file) throws IOException { FileUtil.ensureParentDirectoryExists(destination, filePath); Files.copy(file.toPath(), destination.toPath(), StandardCopyOption.REPLACE_EXISTING); - FileUtil.setFilePermissions(destination, savePath, extension); + FileUtil.setFilePermissions(destination, savePath, filePath); return savePath; } }