Browsers don\'t take full path of local disc, instead they concatenate the filename with fakepath. Is there any way to access the file (image) from fakepath using typescript
It's working
example.component.html
example.component.ts
imageShow: any= ''; onFileChanged(event) { this.file = event.target.files[0] var reader = new FileReader(); reader.readAsDataURL(event.target.files[0]); reader.onload = (event) => { this.imageShow = (event.target).result; }
}