show the file count on uploading

This commit is contained in:
2024-04-23 13:28:49 +10:00
parent 0e19f6da87
commit 2e39b9cb2a

View File

@@ -149,8 +149,13 @@ let SM = {
percent = Math.round(percent); percent = Math.round(percent);
} }
let title = 'Uploading';
if(count > 1) {
title = ' ' + (idx + 1) + ' of ' + count;
}
Swal.update({ Swal.update({
title: 'Uploading...', title: title + '...',
html: `${file.name} - ${percent}%`, html: `${file.name} - ${percent}%`,
}); });
} }