Actually, I\'m working on a Spring REST API with an interface coded in Angular 2.
My problem is I can\'t upload a file with Angular 2.
My Webresources in jav
I was just removed content-type from the header. for example this is our header:
let headers = new Headers({
'Authorization': 'Bearer ' + this.token,
'Content-Type': 'multipart/form-data'
});
What you have to do is to just remove Content-Type from this. Like:
let headers = new Headers({
'Authorization': 'Bearer ' + this.token,
});