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

Php - Delimiter must not be alphanumeric or backslash -

Delphi interface implements -

css - invalid property value for padding -