multipart/form-data1 [SuiteCare] MultipartFile과 JSON 같이 보내기 이력서를 등록하는 기능을 구현하는 중에 사진과 폼 데이터들을 같이 보내려는데 여러 차례의 삽질이 있었다. 클라이언트쪽 코드를 먼저 살펴보겠다. 내가 서버쪽으로 전송하려고 했던 body의 구조이다. const body = { mateResume: { profile_picture_filename: '', contact_time_start: '09:00', contact_time_end: '21:00', introduction: '', desired_wage: '' }, careerList: [], certificateList: [], locationList: [], mainServiceList: [] } const response = await axiosInstance.post('/api/v1/mate/re.. 2024. 3. 21. 이전 1 다음