I'm using Axios to make the requests of my application, and in one of the GET requests returns a PDF file. When I make the GET request by Postman it opens a window to choose where to save the file, but when I make the request for my application it does not download. Which method should I use to download the file?
axios.get('/server/pdfs')
.then(function (response) {
//Qual método usar aqui para efetuar o download??
})
.catch(function (error) {
console.log(error)
})
I have already looked at the official documentation on GitHub and it does not explain how to download using Axios.