node.js - Download multiple files from NodeJS Server -


i trying download multiple files node js server. can download single file using following code

res.download('group_documents/sample1.pdf','sample1.pdf', function(err){   if (err) {     console.log(err);   } else {     // decrement download credit etc   } }); 

how can download files using single request client.

if target clients web browsers, can't, http protocol not allow multiple downloads single request.

if need this, you'd need either write custom client application, or (more simply) zip files archive before transmitting them.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -