title: Deleting an image when deleting an item using multer
body: <p>Ok so I am using multer to upload an image of an item that a user submits.  However when the user deletes the item the image file is still on the server.
  I have been trying to figure this out and I am not sure if its the way findByIdAndRemove() is deleting the user item before I am making the call to remove the image or what but I am getting the error saying that it cant find the file name of undefined. I am using a promise thinking it would allow me to do this but I am not sure of where else to go.  I am new at this and learning as I go. Here is my delete route:</p>
  
  <pre><code>router.delete("/item/:id", middleware.isLoggedIn, (req, res) =&gt; {
    Promise.all([
      (Item.findByIdAndRemove(req.params.id),
      fs.unlinkSync("./public/uploads/" + req.item.image))
    ])
      .then(() =&gt; {
        return res.render("products");
      })
      .catch(err =&gt; {
        return console.log("err", err.stack);
      });
  </code></pre>
  
  <p>Any suggestions?</p>