A
A
Anon33632021-02-09 17:18:12
Node.js
Anon3363, 2021-02-09 17:18:12

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 question

Ask a Question

731 491 924 answers to any question