diff --git a/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java b/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java index 65fb1658..d22fa3fb 100644 --- a/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java +++ b/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java @@ -74,7 +74,7 @@ private String generateFilePath(final MultipartFile file) { if (file == null) { return null; } - return UUID.randomUUID() + "_" + file.getOriginalFilename(); + return UUID.randomUUID() + "_" + file.getOriginalFilename().replaceAll("\\[|\\]", ""); } private void uploadFile(final MultipartFile file, final String newFilePath) {