I want to upload file and get these file path in browsers window I have selected file using following code
html
<input type="file" id="file" (change)="onFileChange($event)" *ngIf="slectedmethod=='UPLOAD'" #fileInput multiple>
ts
onFileChange(event) {
let reader = new FileReader();
if (event.target.files && event.target.files.length > 0) {
this.file = event.target.files
reader.readAsDataURL(this.file);
}
}