diff --git a/admin/panels/uploader/admin.uploader.tpl b/admin/panels/uploader/admin.uploader.tpl
index 7419c7f..a9951c2 100755
--- a/admin/panels/uploader/admin.uploader.tpl
+++ b/admin/panels/uploader/admin.uploader.tpl
@@ -30,7 +30,7 @@
-
+
@@ -39,7 +39,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -57,46 +57,46 @@
-
+
diff --git a/admin/res/admin.js b/admin/res/admin.js
index 8705875..c6ebdda 100644
--- a/admin/res/admin.js
+++ b/admin/res/admin.js
@@ -34,11 +34,14 @@ function mobile_open_button() {
/* Functions of uploaderFiles */
/* This function is called in the admin.uploader.tpl */
function startUploadEvent() {
- document.querySelector('.custom-file-input').addEventListener('change', function(e){ /* Change namefile when user select it */
- const currentInputFileID = e.srcElement.id;
- const fileName = document.getElementById(currentInputFileID).files[0].name;
- const nextSibling = e.target.nextElementSibling
- nextSibling.innerText = fileName
+ const uploadInputs = document.querySelectorAll('.custom-file-input');
+ uploadInputs.forEach(function(currentInput) {
+ currentInput.addEventListener('change', function(e){ // Change namefile when user select it
+ const currentInputFileID = e.srcElement.id;
+ const fileName = document.getElementById(currentInputFileID).files[0].name;
+ const nextSibling = e.target.nextElementSibling
+ nextSibling.innerText = fileName
+ });
});
}
/* Functions of FileManager */