Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: example, now files from datatransfer is a FileList which is not …
Browse files Browse the repository at this point in the history
…an array
  • Loading branch information
daviddias committed May 3, 2017
1 parent ecccf1a commit d7c9eec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/transfer-files/public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ function onDrop (event) {
})
}

files.map((file) => {
let filesArray = []
for (let i = 0; i < files.length; i++) {
filesArray.push(files[i])
}

filesArray.map((file) => {
readFileContents(file)
.then((buffer) => {
return node.files.add([{
Expand Down

0 comments on commit d7c9eec

Please sign in to comment.