From cb057646e818cf4058864314cc4271a38bb07942 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 16 Jan 2023 00:17:31 +0100 Subject: fix: alert stops the upload from happening until it is dismissed --- src/wwwroot/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wwwroot') diff --git a/src/wwwroot/index.html b/src/wwwroot/index.html index 390ef4c..1495cf1 100644 --- a/src/wwwroot/index.html +++ b/src/wwwroot/index.html @@ -58,7 +58,7 @@ const fileInput = document.getElementById("file"); document.getElementById("file-form").addEventListener("submit", () => { if (fileInput.files[0].size > 104_857_60) { - alert("Uploading..."); + document.querySelector("#file-form .btn").innerText = "Uploading..."; } }); fileInput.addEventListener("change", (e) => { -- cgit v1.3