Fix 404 images on upload

This commit is contained in:
Eduard Urbach 2018-04-24 02:33:40 +02:00
parent 425f8364c3
commit 77147c5bb8

View File

@ -109,6 +109,7 @@ function previewImage(file: File, endpoint: string, previews: HTMLCollectionOf<E
for(let preview of previews) {
let img = preview as HTMLImageElement
img.classList.remove("hidden")
img.classList.remove("element-not-found")
img.src = reader.result
}
}