title: Google Chrome has insufficient permissions to download a file from my script
body: <p>I have a csv download script but it is returning an error below when overwriting a file.</p>
  
  <blockquote>
    <p>Failed - Insufficient permissions - google chrome</p>
  </blockquote>
  
  <pre><code>header('Content-Type: text/csv');
  header('Content-Disposition: attachment;filename="import_registrations.csv"');
  
  $fp = fopen('php://output', 'w');
  
  foreach ($data as $line) {
      fputcsv($fp, $line);
  }
  
  fclose($fp);
  </code></pre>