title: Send multiple images from node js to frontend
body: <p>I am implementing a gallery where i wanted to show all images in a page - Reactjs or Angular</p>
  <p>How can i send multiple images to frontend from NODE? I was able to send one image file saved in a folder in nodejs.
  Below is the code for sending single image - im able to see that image using POSTMAN</p>
  <p>Note : here im fetching the image name from a table - These images are there in event folder(image1.jpg, image2.jpg...)</p>
  <pre><code>  console.log(req.files);
    const {id} = req.params;
    var sql = &quot;SELECT image from users_image where id = ?&quot;;
    var query = db.query(sql, [id], function(err, result) {
      if(err){
        console.log(&quot;Error &quot;, err);
        res.status(500).send(err)
      } else {
        const fileNameAndPath = result[0].image; //image1.jpg
        if(err) res.status(500).send(err);
        res.sendFile(fileNameAndPath, { root: './public/images/upload_images/event' })
      }
    });
  }
  </code></pre>
  <p>But im not able to send multiple images using sendFile() as it does only single image.
  How can i implement this?</p>
  <p>is it possible to get the preview using postman if i sent multiple images from node?</p>
  <p>I could find many example which reads images from server but to html files in same backend directory. They are not sending the response to frontend, so that we can get the image and show in out ui built in react or angular.</p>
  <p>Is my approach correct? Planning to deploy frontend, backend and DB in same server</p>