title: How to get csv file object from zipobject in jszip and angularjs
body: <p>I am trying to get csv file object from zipobject which i extracted from a zip file using jszip.But Now i am not able to read the actual csv file from this zipobject.Can anybody help?
  this is my zipobject,<a href="https://i.stack.imgur.com/F7LkF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F7LkF.png" alt="enter image description here"></a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html data-ng-app="myApp"&gt;
  
  &lt;head&gt;
  
    &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"&gt;&lt;/script&gt;
    &lt;script data-require="jszip@2.4.0" data-semver="2.4.0" src="https://cdn.rawgit.com/Stuk/jszip/v2.4.0/dist/jszip.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body data-ng-controller="testController"&gt;
  
  
    &lt;div&gt;
      &lt;input type="file" name="archiveUpload" id="archiveUpload01"&gt;
    &lt;/div&gt;
  
    &lt;script&gt;
      angular
        .module('myApp', [])
        .run(function($rootScope) {
          $rootScope.title = 'myTest Page';
        })
        .controller('testController', ['$scope', '$q',
          function($scope, $q) {
  
            $scope.extractArchive = function(zipfile) {
              var dfd = $q.defer();
              var reader = new FileReader();
  
              reader.onerror = dfd.reject.bind(dfd);
              reader.onload = function(e) {
                if (!reader.result) dfd.reject(new Error("Unknown error"));
  
                var zip = new JSZip(reader.result);
                return dfd.resolve(zip);
              };
              reader.readAsArrayBuffer(zipfile);
              return dfd.promise;
            }
  
            function onArchiveChange(evt) {
              var target = evt.dataTransfer || evt.target;
              var file = target &amp;&amp; target.files &amp;&amp; target.files[0];
              $scope.extractArchive(file)
                .then(function(zipFile) {
                  console.log(zipFile)
                })
            }
  
            angular.element(document.querySelector('#archiveUpload01')).on('change', onArchiveChange);
  
  
          }
        ])
    &lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is my code.</p>