From 80bc35bf4cb27d764d52c5d6c44c1215717341d3 Mon Sep 17 00:00:00 2001 From: James Collins Date: Tue, 23 Apr 2024 10:16:05 +1000 Subject: [PATCH] show new name --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index f0597aa..f5d2131 100644 --- a/public/script.js +++ b/public/script.js @@ -146,7 +146,7 @@ let SM = { Swal.fire({ icon: 'success', title: 'Success', - html: count > 1 ? `Uploaded ${count} files successfully` : `${file.name} uploaded successfully`, + html: count > 1 ? `Uploaded ${count} files successfully` : `${response.data.name || file.name} uploaded successfully`, showConfirmButton: false, timer: 3000 });