From d4ec9a59c12159613892166123ee92b4496d0e6e Mon Sep 17 00:00:00 2001 From: LeeJungBum Date: Sun, 25 Aug 2024 05:19:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/wefood/back/global/image/service/S3Service.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/wefood/back/global/image/service/S3Service.java b/src/main/java/com/wefood/back/global/image/service/S3Service.java index 5e7c551..b94ee59 100644 --- a/src/main/java/com/wefood/back/global/image/service/S3Service.java +++ b/src/main/java/com/wefood/back/global/image/service/S3Service.java @@ -228,7 +228,7 @@ private void removeNewFile(File targetFile) { // 로컬에 파일 업로드 하기 private Optional convert(MultipartFile file) throws IOException { - File convertFile = new File("uploads"+ "/" + file.getOriginalFilename()); + File convertFile = new File("/usr"+ "/" + file.getOriginalFilename()); if (convertFile.createNewFile()) { // 바로 위에서 지정한 경로에 File이 생성됨 (경로가 잘못되었다면 생성 불가능) try (FileOutputStream fos = new FileOutputStream(convertFile)) { // FileOutputStream 데이터를 파일에 바이트 스트림으로 저장하기 위함 fos.write(file.getBytes());