Skip to content

Commit

Permalink
fix: fix file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Jul 22, 2024
1 parent be95796 commit 6781731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gymmi/service/MyPageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public ProfileImageResponse setProfileImage(User loginedUser, MultipartFile prof
.ifPresent(profileImage -> profileImageRepository.delete(profileImage));

String extension = StringUtils.getFilenameExtension(profileImageFile.getOriginalFilename());
String filename = UUID.randomUUID() + extension;
String filename = UUID.randomUUID() + "." + extension;
ProfileImage newProfileImage = ProfileImage.builder()
.owner(loginedUser)
.originName(profileImageFile.getOriginalFilename())
Expand Down

0 comments on commit 6781731

Please sign in to comment.