I am using FileReader for reading multiple files and folders through drag and drop in chrome using javascript. It is working properly, but problem is that i want to call function after all file and folder read completes. I can't because it is asyncronous operation and FileReaderSync is not supported in chrome. So is there any way to doing this?
this is my code,
entry.file(function (file) {
var reader = new FileReader();
reader.onloadend = function (e) {
data.push(this.result);
};
reader.readAsText(file);
});