All PDF files are saved in the file system on the server, how to make the files downloadable on the client side.
for Ex:
app.use('/pdfDownload', function(req, res){ var pathToTheFile = req.body.fileName; readFile(pathToTheFile, function(data){
- request made
function readFile(pathToTheFile, cb){ var fs = require('fs'); fs.readFile(pathToTheFile, function(err, data){
Beast source share