title: How to read stored file using Multer disk storage option (NodeJs)?
body: <p>I am able to store images in my local disk storage using multer successfully but while using GET method, it throws "Cannot GET /uploads/image-1547436792386" error. I have provided my image-upload.js code below:</p>
  
  <pre><code>const multer  = require('multer');
  
  const storage = multer.diskStorage({
    destination: function (req, file, cb) {
      cb(null, 'uploads/');
    },
    filename: function (req, file, cb) {
      cb(null, file.fieldname + '-' + Date.now());
    }
  });
  
  const upload = multer({ storage: storage });
  
  module.exports = upload;
  </code></pre>
  
  <p>Service.ts:</p>
  
  <pre><code>const imageUpload = require('../services/image-upload');
  const singleUpload = imageUpload.single('image');
  
  module.exports = function(app) {
     app.post('/api/image-upload', auth.jwtRefreshToken, imageUploadRoute);
  };
  
  function imageUploadRoute(req, res) {
    const userId = req.userId;
    if (typeof userId !== 'string') {
      return res.status(422).json({message: 'Error in UserId'});
    }
    singleUpload(req, res, function(err) {
      if (err) {
        return res.status(422).send({errors: [{title: 'Image Upload error', detail: err.message}]});
      }
      User.findOne({_id: userId})
          .then((user) =&gt; {
            console.log(req.file);
            user.profileImage = req.file.path;
            return user.save()
                .then(() =&gt; {
              return res.status(200).send({message: 'Image Uploaded Successfully'});
            })
            .catch(() =&gt; {
              return res.status(500).send({message: 'Error in uploading image'});
            });
      })
      .catch(() =&gt; {
        return res.status(500).send({message: 'UserId not found'});
      });
    });
  }
  </code></pre>