Update fileInput.js
This commit is contained in:
parent
379791a326
commit
8bb9e5b22f
1 changed files with 4 additions and 3 deletions
|
@ -80,9 +80,10 @@ function setupFileInput(chooser) {
|
|||
document.body.addEventListener('dragleave', dragleaveListener);
|
||||
document.body.addEventListener('drop', dropListener);
|
||||
|
||||
$("#" + elementId).on("change", function() {
|
||||
handleFileInputChange(this);
|
||||
});
|
||||
$("#" + elementId).on("change", function(e) {
|
||||
allFiles = Array.from(e.target.files);
|
||||
handleFileInputChange(this);
|
||||
});
|
||||
|
||||
function handleFileInputChange(inputElement) {
|
||||
const files = allFiles;
|
||||
|
|
Loading…
Reference in a new issue