We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 119872c + b2dc0c2 commit edbd480Copy full SHA for edbd480
1 file changed
src/main/java/com/jup/jupging/domain/report/controller/ReportController.java
@@ -45,7 +45,7 @@ private Long memberIdFrom(String authHeader) {
45
@PostMapping(value = "/reports", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
46
public ResponseEntity<?> createReport(@RequestPart("image") MultipartFile multipartFile,
47
@RequestHeader(value = "Authorization", required = false) String authHeader,
48
- @RequestBody ReportReq req) throws IOException {
+ @RequestPart("req") ReportReq req) throws IOException {
49
try {
50
Long memberId = memberIdFrom(authHeader); // ← 토큰에서 memberId 추출
51
String imageUrl = s3Uploader.upload(multipartFile, "static");
0 commit comments