Skip to content

Commit e1551d6

Browse files
authored
Merge pull request #75 from Nexters/main
fix: Swagger multipart 표시 개선
2 parents 26d0ec7 + 99249aa commit e1551d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/climbup/climbup/attempt/controller/AttemptController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.springframework.data.domain.Pageable;
3232
import org.springframework.data.domain.Sort;
3333
import org.springframework.http.HttpStatus;
34+
import org.springframework.http.MediaType;
3435
import org.springframework.http.ResponseEntity;
3536
import org.springframework.security.access.prepost.PreAuthorize;
3637
import org.springframework.web.bind.annotation.*;
@@ -164,11 +165,11 @@ public ResponseEntity<ApiResult<RouteMissionUploadChunkResponse>> uploadRouteMis
164165

165166
@Operation(summary = "해당 도전의 영상 업로드 세션 마무리", description = "해당 도전의 영상 업로드 세션을 마무리하고 썸네일을 함께 업로드합니다.", security = @SecurityRequirement(name = "bearerAuth"))
166167
@ApiResponse(responseCode = "201", description = "해당 도전의 영상 업로드 세션 마무리")
167-
@PostMapping(value = "/{attemptId}/upload/{uploadId}/finalize")
168+
@PostMapping(value = "/{attemptId}/upload/{uploadId}/finalize", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
168169
public ResponseEntity<ApiResult<RouteMissionUploadSessionFinalizeResponse>> finalizeRouteMissionUploadSession(
169170
@PathVariable(name = "attemptId") Long attemptId,
170171
@PathVariable(name = "uploadId") UUID uploadId,
171-
@RequestParam(value = "thumbnail", required = false) MultipartFile thumbnailFile
172+
@RequestPart(value = "thumbnail", required = false) MultipartFile thumbnailFile
172173
) {
173174
// 디버깅 로그 추가
174175
log.info("=== Finalize API 호출됨 ===");

0 commit comments

Comments
 (0)