title: file-saver keep default file name of the file sended by node.js
body: <p>I'm having trouble trying to keep the backend file name when i'm downloading an file.</p>
  <p>I'm using the file-saver: import { saveAs } from 'file-saver';</p>
  <p>Then I have the following code:</p>
  <p>saveAs( new Blob([resp]));</p>
  <p>If I don't add the second argument then by default they set the following name:
  <a href="https://i.stack.imgur.com/CyvMu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CyvMu.png" alt="enter image description here" /></a></p>
  <p>if I copy and paste my GET request(url) in the browser. Its start correctly the download with the correct name.</p>
  <p>I would like to do everything in the angular side. I don't want to add in the HTML the element </p>
  <p>What is the best practice in this case?</p>
  <p>or how I can extract the File name from the request</p>
  <pre><code>download() { let url = https://localhost:33/download return this.http.get(url, {responseType: 'blob' as 'json'}); }
  </code></pre>
  <p>Thank you</p>