I know this is very a general question but I am failing to upload a file in Angular 2.
I have tried
…but failed. Has anyone uploaded a file in Angular? What method did you use? How to do so? If any sample code or demo link is provided it will be really appreciated.