1

I am using below code to read a ZIP file at client side

 var Zfile = new Zipfile( $('#xfilex').val() );
 var file = Zfile.entries[0];
 // From Here file reading continues... I am giving this to say what I am trying to accomplish
 if(file)
 {
    var reader;
    reader = new FileReader();
    reader.readAsText(file, "UTF-8");
    reader.onload = loaded;
 }

But I am unable to read the file... Please help me to find mistakes in the above code. It is pure JavaScript and taken the reference from Unzipping files Question. I hope I can get help.

Community
  • 1
  • 1
Exception
  • 8,111
  • 22
  • 85
  • 136

0 Answers0