diff --git a/src/main/resources/static/js/fileInput.js b/src/main/resources/static/js/fileInput.js index 1e537dfc7d5..671bb039a76 100644 --- a/src/main/resources/static/js/fileInput.js +++ b/src/main/resources/static/js/fileInput.js @@ -86,7 +86,7 @@ function setupFileInput(chooser) { if (element instanceof HTMLInputElement && element.hasAttribute("multiple")) { allFiles = isDragAndDrop ? allFiles : [... allFiles, ... element.files]; } else { - allFiles = Array.from(isDragAndDrop ? allFiles : element.files[0]); + allFiles = Array.from(isDragAndDrop ? allFiles : [element.files[0]]); } if (!isDragAndDrop) {