You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
I'm using $http with FormData to send multiple files, and I need to not set Content-Type, or the browser will not set Content-Type and the multipart boundary won't be known.
I can do this by saving, deleting, and restoring the header in $http.defaults.headers, but It would be a lot nicer to do $http.post(url, data, {headers: {'Content-Type': null}}).
The text was updated successfully, but these errors were encountered:
The request should include the header Content-Type: multipart/form-data; boundary=blahblahblah. I thought it sent Content-Type: application/xml when I tried this last, but I must have been doing something else different.
I'm using
$http
withFormData
to send multiple files, and I need to not setContent-Type
, or the browser will not setContent-Type
and the multipart boundary won't be known.I can do this by saving, deleting, and restoring the header in
$http.defaults.headers
, but It would be a lot nicer to do$http.post(url, data, {headers: {'Content-Type': null}})
.The text was updated successfully, but these errors were encountered: