Skip to content

Commit a6aa8ae

Browse files
authored
update: [File] 파일 생성 오류 수정 (#73)
1 parent 0376d74 commit a6aa8ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

runtracker/src/main/java/com/runtracker/global/config/FileUploadConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ public class FileUploadConfig {
2020
@PostConstruct
2121
public void init() {
2222
File uploadDirectory = new File(uploadDir);
23-
if (!uploadDirectory.exists() && !uploadDirectory.mkdirs()) {
24-
throw new IllegalStateException("Failed to create upload directory: " + uploadDir);
23+
if (!uploadDirectory.exists()) {
24+
if (!uploadDirectory.mkdirs()) {
25+
System.out.println("Warning: Failed to create upload directory: " + uploadDir);
26+
}
2527
}
2628
}
2729
}

0 commit comments

Comments
 (0)