I have a problem with the headers that I passed in the ng-file -upload
getting overwritten.
Upload.http({
url:URL
headers:{'Content-Type': application/json},
data: file
}).progress(function(evt) {
file.progress = Math.min(100, parseInt(100.0 *
evt.loaded / evt.total));
}).success(function(response) {
}).error(function(response) {
});
What I actually want is to pass the content type as null or undefined. The problem is I have configured chrome modify header add on to add headers to all requests.
I only want the file upload request to be made with content type 'empty'. But when I am adding the header parameter it is getting overwritten by the add on. I am not able to remove the add on as it will effect my other requests.
Can anyone help?