Skip to content

Commit

Permalink
feat : club image 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Changha-dev committed Nov 29, 2023
1 parent e05a24e commit 7ff239e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/donggram/back/service/ClubService.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public ResponseDto postNewClub(NewClubDto newClubDto, MultipartFile multipartFil
imageClub.uploadBasicImage();
}else {

String s = uploadImage(multipartFile, clubRequest);
String s = uploadImage(multipartFile);
imageClub.uploadCustomImage(s);
}

Expand Down Expand Up @@ -322,13 +322,13 @@ public static String LocalDateTimeToString(){
return formattedDate;
}

public String uploadImage(MultipartFile file, ClubRequest clubRequest) {
public String uploadImage(MultipartFile file) {


try {

String code = UUID.randomUUID().toString();
String imageFileName = "club_" + clubRequest.getId() + "_" + code;
String imageFileName = "club_" + "_" + code;

ObjectMetadata metadata = new ObjectMetadata();
metadata.setContentType(file.getContentType());
Expand Down

0 comments on commit 7ff239e

Please sign in to comment.