Answer the question
In order to leave comments, you need to log in
There are no errors but the file does not load, what could be the problem?
res.setHeader('Content-disposition', 'attachment; filename=report.x-zip');
res.setHeader('Content-type', 'application/x-zip');
return res.download(__dirname + '/report.x-zip', function (error) {
console.log(error)
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question