title: How to send multiple images in a Expressjs api get request with sendFIle()
body: <p>I'm looking for away to send multiple images in one GET request from an Expressjs server through an api.</p>
  
  <p>I want to create an image gallery of each users uploaded images in a MEAN stack. When images are uploaded using multer, the image information is saved to mongodb, including the userid of whoever uploaded it. </p>
  
  <p>When on angularjs, I want user to have access to any of the images they have previously uploaded. Currently I'm sending one file on a GET request based on user id. Is there anyway of sending multiple files in one json. I'm currently using Expressjs's <code>res.sendFile</code>, but haven't found any info about sending multiple back yet.</p>
  
  <p><a href="https://expressjs.com/en/api.html#res.sendFile" rel="nofollow noreferrer">https://expressjs.com/en/api.html#res.sendFile</a></p>
  
  <p>Here is my current get request:</p>
  
  <pre><code>exports.getUpload = function(req, res) {
      Upload.find({createdby: req.params.Id}).exec(function(err, upload) {
          errorhandle.errorconsole(err, 'file found');
          console.log(upload[0]);
          var options = {
              root: '/usr/src/app/server/public/uploads/images'
          };
          var name = "" + upload[0].storedname +"";
          console.log(name);
          res.sendFile(name, options,function(err) {
              errorhandle.errorconsole(err, 'file sent');
          });
      });
  };
  </code></pre>