How to force HTML input file chooser to give the original file name in Ionic(Android)?
I am using HTML input for choosing file in my Ionic3/Angular application. I am using below code: // in .html file <input #fileUpload type="file" name="myfile"(change)="onFileChoose($event)"/> // in .ts file onFileChoose($event): void { this.fileChooser.getFileInfo($event).then((result) => { this.fileName = result.fileName; this.fileData = this.sanitizeFileData(result.fileData); this.fileSize = result.fileSize; this.fileType = result.fileType; }, (error) => { this.helperProvider.createAlert('Alert', 'File is corrupted.'); }); } getFileInfo(event: Event): Promise<any> { let target = event &&