From 857d37d8682fc94af2fc9bdd35f35fbb77376f63 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 18 Jan 2018 16:20:22 -0800 Subject: [PATCH] Allow multiple files to be loaded via eject --- js/fileUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/fileUtils.js b/js/fileUtils.js index b17b046c..a452a9d5 100644 --- a/js/fileUtils.js +++ b/js/fileUtils.js @@ -34,6 +34,7 @@ export async function promptForFileReferences() { // Can this fail? Do we ever reject? const fileInput = document.createElement("input"); fileInput.type = "file"; + fileInput.multiple = true; // Not entirely sure why this is needed, since the input // was just created, but somehow this helps prevent change // events from getting swallowed.