I want get the file name from my html input tag in a modal view and save it using Angular2. Can someone help me?
You can do next:
HTML:
TypeScript:
fileEvent(fileInput: Event){ let file = fileInput.target.files[0]; let fileName = file.name; }