change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-16 10:55:04 +05:30
parent 4f417f4a8a
commit 8d0b9c0e76
8 changed files with 13 additions and 12 deletions

View File

@ -117,6 +117,7 @@ function Index() {
function downloadReport(url) {
fetch(url)
.then(async response => {
console.log(response.headers);
const filename = response.headers
.get("content-disposition")
.split('"')[1];