415 에러 직면

다중 이미지 파일 업로드를 위해 Multipartfile type으로 여러개의 이미지 파일을 받았는데,

org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type ‘application/octet-stream’ is not supported

415 Http code라는 에러가 나타났다.

errorImage

코드 작성은 잘했고, Postman에서 데이터 전송하는것이 문제엿다. Bulk Edit 옆에 있는 점 세개 버튼을 클릭하고 Content-type을 선택한 후에 part별 type을 자세하게 선택했어야 했다.

다중 이미지 구현 참조 사이트

태그:

카테고리:

업데이트:

댓글남기기