title: PhpSpreadsheet return file instead of saving it
body: <p>I have generated xmlx file and I am able to save it and provide it for the user via:</p>
  
  <pre><code>$writer-&gt;save('hello world.xlsx');
  header('Location: hello world.xlsx');
  </code></pre>
  
  <p>However, then the file remains on the hard drive. I need to get rid of it as it is a security threat.</p>
  
  <p>I tried unlinking the file</p>
  
  <pre><code>unlink('hello world.xlsx');
  </code></pre>
  
  <p>but that deletes the file too early so the user doesn't have access to it.
  If it can work with unlink then I need to be sure the file will be deleted (so proper using of <code>die();</code> and such)</p>
  
  <p><strong>EDIT:</strong>
  It is not only for security reasons anymore. The provider doesn't allow saving files so it is the only way to go.</p>