I have a mini app, where I have to post a form data to an endpoint from browser.
This is my post:
var formData = new FormData();
formData.append('blobImage', blob, 'imagem' + (new Date()).getTime());
return $http({
method: 'POST',
url: api + '/url',
data: formData,
headers: {'Content-Type': 'multipart/form-data'}
})
Boundaries seems to be added by formData to the parameter, however, I cannot get it to send in the header, how should I done?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…