title: Angular save file as csv result in Failed- network error Only on Chrome
body: <p>I'm using the following code to save file as csv.</p>
  
  <pre><code>$scope.saveCSVFile = function (result)
  {
      var a         = document.createElement('a');
      a.href = 'data:application/csv;charset=utf-8,' + encodeURIComponent(result.data);
      a.target      = '_blank';
      a.download    =  $scope.getFileNameFromHttpResponse(result);
      document.body.appendChild(a);
      a.click();
      $scope.isReportInProgress = false;
  };
  </code></pre>
  
  <p>The file is working on most of the cases but for some reason when the file is larger than 10MB i get "Failed - Network Error".</p>
  
  <p>It happens only on chrome.</p>
  
  <p>I tried to search the web for this issue and couldn't find anything relevant.</p>
  
  <p>Can you think of an idea why does it happens? or maybe use a different save file method that will work on chrome/firefox/IE instead of my function?</p>