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

Commit

Permalink
fix: chrome nows treat filelist as an object instead of an array
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Mar 29, 2017
1 parent de33c62 commit d5d2fe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/transfer-files/public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([{
Expand All @@ -151,7 +152,7 @@ function onDrop (event) {
.join('<br>')
})
.catch(onError)
})
}
}

/*
Expand Down

0 comments on commit d5d2fe1

Please sign in to comment.