I want get the file name from my html input tag in a modal view and save it using Angular2. Can someone help me?
HTML
Add {{ imgFileInput?.files[0]?.name }}
Component
uploadSingle(event) { const fileName = event.target.files[0].name; }