웹 개념
[web] 멀티파트 설명/의의
코딩질문자
2023. 6. 15. 11:10
728x90
Using multipart/form-data format
FormData
To send the data as a multipart/formdata you need to pass a formData instance as a payload. Setting the Content-Type header is not required as Axios guesses it based on the payload type.
const formData = new FormData();
formData.append('foo', 'bar');
axios.post('https://httpbin.org/post', formData);
axios를 이용해서 헤더에 이진데이터를 이용할때는 멀티파트라는 개념이 있다. 이것을 이용해서 보내야지 이진데이터를 보낼 수 있다.
728x90