Skip to content

Commit

Permalink
[fix] 사용자 정보 수정시 이미지 미등록시 업데이드 안되게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tlarbals824 committed May 25, 2023
1 parent b674690 commit fb5ff19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public List<String> uploadImgList(List<MultipartFile> imgList) {

//단일 이미지 업로드
public String uploadImg(MultipartFile file) {
if(Objects.isNull(file)) return null;
if(file.isEmpty()) return null;

String originFileName = Normalizer.normalize(file.getOriginalFilename(), Normalizer.Form.NFC);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.kusitms.samsion.domain.user.application.dto.request;

import org.springframework.lang.Nullable;
import org.springframework.web.multipart.MultipartFile;

import lombok.Builder;
Expand All @@ -14,7 +15,9 @@ public class MyPetUpdateRequest {
private int petAge;
private String petName;

@Nullable
private MultipartFile profileImage;
@Nullable
private MultipartFile petImage;

@Builder
Expand Down

0 comments on commit fb5ff19

Please sign in to comment.