While printing the filename on the input box its showing this error
onChange($event : Event){ const file = ($event.target as HTMLInputElement).files[0]