Last active
July 26, 2021 19:02
-
-
Save CristalT/e6734ce3014f259e8f404a2d4f1f0486 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* With axios agent | |
*/ | |
axios({ | |
url: 'url', | |
method: 'POST', | |
responseType: 'blob' | |
}).then(res => { | |
const fileURL = URL.createObjectURL(res.data); | |
window.open(fileURL); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment