服务端nodejs
axios 默认使用multipart/form-data 请求的时候,会丢失boundary,需要手工设置
const formData = new FormData();
formData.append("a", "b");
axios.post('xxx',
formData,
{
headers: {
'Content-Type': 'multipart/form-data; boundary=' + formData.getBoundary(),
}
});