ok now bind is working
This commit is contained in:
@@ -4,9 +4,9 @@
|
|||||||
let fileinput: HTMLInputElement
|
let fileinput: HTMLInputElement
|
||||||
|
|
||||||
const onFileSelected =(e)=>{
|
const onFileSelected =(e)=>{
|
||||||
let image = e.target.files[0];
|
let img = e.target.files[0];
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
reader.readAsDataURL(image);
|
reader.readAsDataURL(img);
|
||||||
reader.onload = e => {
|
reader.onload = e => {
|
||||||
image = e.target.result as string
|
image = e.target.result as string
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user