I want to take only one file as input whenever i choose a file i want to take new one but my current code taking more than one file.
<input id="input-file" type="file" name="file" (change)="onFileSelected($event)" accept="application/pdf;image/jpeg;image/gif;image/tif;image/tiff;image/jpg;image/png;application/vnd.openxmlformats-officedocument.presentationml.presentation" />
typescript code:
onFileSelected(event){
let file = event.target.value;
}
onFileSelectedfunction here too