Hey there, I've been attempting to generate a download using axios for an excel file but unfortunately, I haven't been successful in opening it. Could you please assist me in identifying the problem?
const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' });
const url = URL.createObjectURL(blob)
const link = document.createElement('a')
link.href = url
link.setAttribute('download', 'atetes.xlsx')
document.body.appendChild(link)
link.click()
I've experimented with several solutions, but I keep receiving a corrupted file.