title: GET file (content and filename) with axios
body: <p>There is an API endpoint which offers a downloadable file - when accessing the url directly from the browser - the file is saved automatically. However, I would like to target the given endpoint from my app, and fetch the file name and content to a reducer within my app's redux store.</p>
  
  <p>I'm using <code>axios</code> for all API requests. In this case, I'm trying to do it like this:</p>
  
  <pre><code>axios({
      url: API_ENDPOINT_URL,
      method: "GET",
      headers,
  }).then((response) =&gt; {
      // do some stuff 
      console.log("response ", response)
  })
  </code></pre>
  
  <p>In this setup, <code>response</code> contains only <code>data</code>, there is no filename. How to go about this?</p>