I\'m writing an web app with AngularJS and angular-material. The problem is that there\'s no built-in component for file input in angular-material. (I feel that file uploading d
For Angular 6+:
HTML:
Choose Spreadsheet File (CSV)
Component method:
csvInputChange(fileInputEvent: any) { console.log(fileInputEvent.target.files[0]); }
Note: This filters to just allow .csv files.
.csv