I have jquery:
$(".upload-cont").bind('drop',function(e){
var files=e.dataTransfer.files;
e.preventDefault();
$.each(files, function(index, file){
var fileReader = new FileReader();
fileReader.onload = (function(file) {
return function(e) {
};
})(files[index]);
});
how to pass the value to the file in $.each()
jQuery doesn’t normalize the
dataTransferobject so you’ll have to access it from the original event