component-normalized-upload

Normalized DataTransfer items for less upload item handling pain

normalized-upload

Normalized DataTransfer items for less upload item handling pain.

$ component install component/normalized-upload
var normalize = require('normalized-upload');
 
document.onpaste = function(e){
  console.log(e);
  normalize(e, function(){
    e.items.forEach(function(item){
      console.log(item);
    });
  });
};

MIT