change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-16 14:58:37 +05:30
parent a6e0cc713c
commit 3a641b93fe
44 changed files with 1 additions and 202 deletions

View File

@ -115,7 +115,7 @@ function Index() {
}
function downloadReport(url) {
fetch(url)
fetch(url , { headers })
.then(response => {
console.log(response)
const filename = response.headers.get('Content-Disposition').split('filename=')[1];