Created
February 8, 2019 13:04
-
-
Save fridzema/85138b1dd5d863a0972661ed2ae9123b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axios({ | |
url: 'http://localhost/download.pdf', | |
method: 'GET', | |
responseType: 'blob', | |
}).then((response) => { | |
window.location = window.URL.createObjectURL(new Blob([response.data])); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment