Skip to content

queicherius/subfolders-too

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💥 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. 💥


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)
  })
}