title: upload file is not storing the destination folder using multer in nodejs
body: <pre><code>router.post('/uploadDocuments', function (req, res) {
    console.log(&quot;uploadDocuments&quot;);
   console.log(req.files.file);
  
    var storage = multer.diskStorage({
      destination: (req, file, callback) =&gt; {
        callback(null, './temp')
      },
      filename: (req, file, callback) =&gt; {
        callback(null, file.fieldname + '-' + Date.now() + path.extname(file.originalname))
      }
  });
  
  const upload = multer({ storage: storage });
  
  });
  </code></pre>
  <p>In console i can see the upload file details</p>
  <pre><code>{
    name: 'doc-file.jpg',
    data: &lt;Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 01 00 01 00 00 ff db 00 84 00 07 07 07 07 07 07 08 08 08 08 0b 0b 0a 0b 0b 10 0e 0d 0d 0e 10 18 11 12 11 ... 93509 more bytes&gt;,
    size: 93559,
    encoding: '7bit',
    tempFilePath: '',
    truncated: false,
    mimetype: 'image/jpeg',
    md5: '19f413e98d9f275691ffd6b53062cf88',
    mv: [Function: mv]
  }
  </code></pre>
  <p>From postman to upload a file getting issues.I checked the folder permission also
  <a href="https://i.stack.imgur.com/quEaj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/quEaj.png" alt="enter image description here" /></a></p>