We have an application where we need to support IE11 with file upload functionality. The version of angular is Angular 11.
There is file upload control, which is working fine in all browsers except IE11 where we are having issue with Cancel button of file dialog box.
<input #fileUploadCtrl class="form-control" type="file" (change)="onFileChange($event)"
Basically when user clicks on "Cancel" button, file selected already must be cleared from input control. Change event is working only if the user selects a file and click on "Open" button. However change event is not triggering when clicking on "Cancel" button.
How we can capture "Cancel" event and clear the file input control in Angular"? If not is there any workaround for clearing the file upload when user click on "Cancel" button?