diff --git a/examples/transfer-files/public/js/app.js b/examples/transfer-files/public/js/app.js index 15db88637a..962e392f75 100644 --- a/examples/transfer-files/public/js/app.js +++ b/examples/transfer-files/public/js/app.js @@ -136,7 +136,8 @@ function onDrop (event) { }) } - files.map((file) => { + for (let i = 0; i < files.length; i++) { + const file = files[i] readFileContents(file) .then((buffer) => { return node.files.add([{ @@ -151,7 +152,7 @@ function onDrop (event) { .join('
') }) .catch(onError) - }) + } } /*