From 9bbfe91c114eea2fadc9fb7ba99a6b4446c05023 Mon Sep 17 00:00:00 2001 From: hong-sile Date: Tue, 10 Oct 2023 15:40:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20mutlipart=EC=97=90=20RequestPart=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #702 --- .../src/main/java/com/emmsale/member/api/MemberApi.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/emm-sale/src/main/java/com/emmsale/member/api/MemberApi.java b/backend/emm-sale/src/main/java/com/emmsale/member/api/MemberApi.java index 87e3243ad..abd757bbc 100644 --- a/backend/emm-sale/src/main/java/com/emmsale/member/api/MemberApi.java +++ b/backend/emm-sale/src/main/java/com/emmsale/member/api/MemberApi.java @@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RequestPart; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; @@ -101,7 +102,7 @@ public ResponseEntity deleteMember( @PatchMapping("/members/{memberId}/profile") public ResponseEntity updateProfile( @PathVariable final Long memberId, - final MultipartFile image, + @RequestPart final MultipartFile image, final Member member ) { final String imageUrl = memberUpdateService.updateMemberProfile(image, memberId, member);