How to download files from server to client using Node.js?
Originally posted here!
To download files from a Node.js server to a client, you have to read the file and set the response header Content-Disposition.
Let's say we have a PDF named resume.pdf in a directory called docs and we want to download that ...
melvingeorge-me.hashnode.dev3 min read