1.0.1 • Published 6 years ago
subfolders-too v1.0.1
:boom: Careful: This package is no longer maintained and is only here for historic reasons. This means you should very likely not use it. You have been warned. :boom:
SubfoldersToo
Helper for taking the dataTransfer
of a drop event and returning all files (including out of subfolders).
Install
npm install subfolders-too
For reference see the Browserify Handbook.
Usage
var subfoldersToo = require('subfolders-too')
// Bind the event and call the helper with the event
document.querySelector('#file-button').onDrop = function (event) {
subfoldersToo(event, function (files) {
// Files is now an array of files that were included in the drop event
console.log(files)
})
}