From bf7ced5c7bd6b5c8f71a4a7a5943a40a79287c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastjan=20Arti=C4=8D?= Date: Tue, 28 Apr 2026 16:29:39 +0000 Subject: [PATCH] Reset upload form also after failed jobs (so next upload works) --- templates/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/index.html b/templates/index.html index 6446353..bf8ea76 100644 --- a/templates/index.html +++ b/templates/index.html @@ -568,6 +568,10 @@ } else if (job.status === "failed") { liveFail(job.error || "Obdelava ni uspela"); $("#submit-btn").disabled = false; + // Reset tudi po napaki, da naslednji upload dela + pendingFile = null; + fileInput.value = ""; + dz.querySelector("div").textContent = "Klikni ali povleci video sem"; } else { showLive(info.friendly, `Job ${job.id} ยท ${job.status}`, info.pct); }