From 99249aa1a046a996b3b1744461631a694bc45609 Mon Sep 17 00:00:00 2001 From: 1117mg Date: Wed, 20 Aug 2025 22:31:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Swagger=20multipart=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../climbup/attempt/controller/AttemptController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/climbup/climbup/attempt/controller/AttemptController.java b/src/main/java/com/climbup/climbup/attempt/controller/AttemptController.java index cfea21c..90eaa33 100644 --- a/src/main/java/com/climbup/climbup/attempt/controller/AttemptController.java +++ b/src/main/java/com/climbup/climbup/attempt/controller/AttemptController.java @@ -31,6 +31,7 @@ import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; @@ -164,11 +165,11 @@ public ResponseEntity> uploadRouteMis @Operation(summary = "해당 도전의 영상 업로드 세션 마무리", description = "해당 도전의 영상 업로드 세션을 마무리하고 썸네일을 함께 업로드합니다.", security = @SecurityRequirement(name = "bearerAuth")) @ApiResponse(responseCode = "201", description = "해당 도전의 영상 업로드 세션 마무리") - @PostMapping(value = "/{attemptId}/upload/{uploadId}/finalize") + @PostMapping(value = "/{attemptId}/upload/{uploadId}/finalize", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) public ResponseEntity> finalizeRouteMissionUploadSession( @PathVariable(name = "attemptId") Long attemptId, @PathVariable(name = "uploadId") UUID uploadId, - @RequestParam(value = "thumbnail", required = false) MultipartFile thumbnailFile + @RequestPart(value = "thumbnail", required = false) MultipartFile thumbnailFile ) { // 디버깅 로그 추가 log.info("=== Finalize API 호출됨 ===");