From 2e39b9cb2a447a1c91aee92d1c5420ccc6f059c5 Mon Sep 17 00:00:00 2001 From: James Collins Date: Tue, 23 Apr 2024 13:28:49 +1000 Subject: [PATCH] show the file count on uploading --- public/script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 1b9dfdd..7de38f7 100644 --- a/public/script.js +++ b/public/script.js @@ -149,8 +149,13 @@ let SM = { percent = Math.round(percent); } + let title = 'Uploading'; + if(count > 1) { + title = ' ' + (idx + 1) + ' of ' + count; + } + Swal.update({ - title: 'Uploading...', + title: title + '...', html: `${file.name} - ${percent}%`, }); }