We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0376d74 commit a6aa8aeCopy full SHA for a6aa8ae
1 file changed
runtracker/src/main/java/com/runtracker/global/config/FileUploadConfig.java
@@ -20,8 +20,10 @@ public class FileUploadConfig {
20
@PostConstruct
21
public void init() {
22
File uploadDirectory = new File(uploadDir);
23
- if (!uploadDirectory.exists() && !uploadDirectory.mkdirs()) {
24
- throw new IllegalStateException("Failed to create upload directory: " + uploadDir);
+ if (!uploadDirectory.exists()) {
+ if (!uploadDirectory.mkdirs()) {
25
+ System.out.println("Warning: Failed to create upload directory: " + uploadDir);
26
+ }
27
}
28
29
0 commit comments