Skip to content

Commit

Permalink
feat: 마일스톤 등록 파일명에 대괄호가 있으면 삭제하기
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang committed Oct 24, 2024
1 parent 26c09ab commit 01f613f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 01f613f

Please sign in to comment.