Skip to content

Commit

Permalink
add file.fullPath for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 8, 2015
1 parent 12f7cbc commit 3196b9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ function makeOnDrop (elem, ondrop) {
ondrop(flatten(results), pos)
})
} else {
ondrop(toArray(e.dataTransfer.files), pos)
var files = toArray(e.dataTransfer.files)
files.forEach(function (file) {
file.fullPath = '/' + file.name
})
ondrop(files, pos)
}

return false
Expand Down

0 comments on commit 3196b9d

Please sign in to comment.