Open shalonteoh opened 7 years ago
I've tried using Multistream but it doesn't seems working. I only get 1 image where i suppose to get multiple. Appreciate any recommendation. thanks.
const readstream = []; files.forEach((element) => { const stream = gfs.createReadStream({ _id: element._id, root: 'entryFiles' }); readstream.push(stream); }, this); return MultiStream(readstream).pipe(res);
I've tried using Multistream but it doesn't seems working. I only get 1 image where i suppose to get multiple. Appreciate any recommendation. thanks.
const readstream = []; files.forEach((element) => { const stream = gfs.createReadStream({ _id: element._id, root: 'entryFiles' }); readstream.push(stream); }, this); return MultiStream(readstream).pipe(res);