Answer the question
In order to leave comments, you need to log in
How to send a file by link in nodejs-express?
Hello, it is necessary to make sure that the link, for example, /getXlsx, does not open the page, but downloads the file. The file is collected on the server by the node-xlsx library, but I don’t understand how to push it into res.send() so that it gives it as a file. How should I do it?
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