Fix 404 images on upload
This commit is contained in:
parent
425f8364c3
commit
77147c5bb8
@ -109,6 +109,7 @@ function previewImage(file: File, endpoint: string, previews: HTMLCollectionOf<E
|
|||||||
for(let preview of previews) {
|
for(let preview of previews) {
|
||||||
let img = preview as HTMLImageElement
|
let img = preview as HTMLImageElement
|
||||||
img.classList.remove("hidden")
|
img.classList.remove("hidden")
|
||||||
|
img.classList.remove("element-not-found")
|
||||||
img.src = reader.result
|
img.src = reader.result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user