Skip to content

Commit

Permalink
fix: mutlipart에 RequestPart 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Oct 10, 2023
1 parent 3609000 commit 9bbfe91
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -101,7 +102,7 @@ public ResponseEntity<Void> deleteMember(
@PatchMapping("/members/{memberId}/profile")
public ResponseEntity<String> updateProfile(
@PathVariable final Long memberId,
final MultipartFile image,
@RequestPart final MultipartFile image,
final Member member
) {
final String imageUrl = memberUpdateService.updateMemberProfile(image, memberId, member);
Expand Down

0 comments on commit 9bbfe91

Please sign in to comment.