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('dragleave', dragleaveListener);
|
||||||
document.body.addEventListener('drop', dropListener);
|
document.body.addEventListener('drop', dropListener);
|
||||||
|
|
||||||
$("#" + elementId).on("change", function() {
|
$("#" + elementId).on("change", function(e) {
|
||||||
handleFileInputChange(this);
|
allFiles = Array.from(e.target.files);
|
||||||
});
|
handleFileInputChange(this);
|
||||||
|
});
|
||||||
|
|
||||||
function handleFileInputChange(inputElement) {
|
function handleFileInputChange(inputElement) {
|
||||||
const files = allFiles;
|
const files = allFiles;
|
||||||
|
|
Loading…
Reference in a new issue