Skip to content

Commit

Permalink
fix(File): 파일 권한 설정 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee committed Oct 1, 2024
1 parent 98d97d6 commit f3d5be8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}

0 comments on commit f3d5be8

Please sign in to comment.