.
This commit is contained in:
@@ -470,7 +470,6 @@
|
|||||||
// Probably no need to await here anymore
|
// Probably no need to await here anymore
|
||||||
//await readFile(el.files[0], el);
|
//await readFile(el.files[0], el);
|
||||||
|
|
||||||
let url = URL.createObjectURL(el.files[0])
|
|
||||||
|
|
||||||
console.log(el.files[0])
|
console.log(el.files[0])
|
||||||
console.log(url)
|
console.log(url)
|
||||||
@@ -483,8 +482,9 @@
|
|||||||
imageId = "base64://" + base.split(",")[1];
|
imageId = "base64://" + base.split(",")[1];
|
||||||
imageId2 = base;
|
imageId2 = base;
|
||||||
} else {
|
} else {
|
||||||
|
let url = URL.createObjectURL(el.files[0])
|
||||||
imageId = `wadouri:${url}`;
|
imageId = `wadouri:${url}`;
|
||||||
imageId2 = imageId
|
imageId2 = url
|
||||||
}
|
}
|
||||||
console.log(imageId)
|
console.log(imageId)
|
||||||
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)
|
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user