I know this is very a general question but I am failing to upload a file in Angular 2. I have tried
1) http://valor-software.com/ng2-file-upload/ and
2) h
I have used the following tool from priming with success. I have no skin in the game with primeNg, just passing on my suggestion.
http://www.primefaces.org/primeng/#/fileupload
In the simplest form, the following code works in Angular 6/7
this.http.post("http://destinationurl.com/endpoint", fileFormData)
.subscribe(response => {
//handle response
}, err => {
//handle error
});
Here is the complete implementation