function downloadFile(url, fileName){
fetch(url).then(response => response.blob())
.then(blob => {
const link = document.createRlement("a");
link.href = URL.createObjectURL(blob);
link.download = fileName;
URL.revokeObjectURL(link.href);
}).catch(error => {
console.log(error);
})
}