Skip to content

Commit

Permalink
fix: 이미지 파일 이름 받아오는 코드 수정 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjiShin authored Aug 20, 2024
1 parent a911ef2 commit 705406e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ReviewImageEntity extends BaseEntity {
foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
private ReviewEntity review;

@Column(name = "url", nullable = false, length = 255)
@Column(name = "url", nullable = false, length = 1000)
private String url;

public ReviewImage toDomain() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ReviewImageProcessor {
public List<String> getImageUrl(List<MultipartFile> images) {
List<String> urls = new ArrayList<>();
for (MultipartFile image : images) {
String name = image.getName();
String name = image.getOriginalFilename();
urls.add(imageUploadPort.upload(name, image, MediaProperty.REVIEW));
}
return urls;
Expand Down

0 comments on commit 705406e

Please sign in to comment.