title: NodeJs: How to save file/files from request object to folder in nodejs controller functions
body: <p><strong>Problem: When I try to upload files using postman, files get uploaded to the destination folder. But I want to upload files in destination folder in controller function after performing some operation</strong></p>
  <p>How can I store files in the destination folder?</p>
  <p>In controller function when I console.log(req.files) I get: <a href="https://i.stack.imgur.com/quzGk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/quzGk.png" alt="enter image description here" /></a>
  <strong>What did I do:</strong></p>
  <ul>
  <li><p>I use multer.memoryStorage() to store files in memory not in destination folder.</p>
  </li>
  <li><p>And In controller function I get files in req.files</p>
  </li>
  </ul>
  <p><strong>What I want to do:</strong>
  save each files to destination folder (upload/files)</p>