S
S
Soft_touch_plastic2021-10-08 19:50:52
Express.js
Soft_touch_plastic, 2021-10-08 19:50:52

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 question

Ask a Question

731 491 924 answers to any question