title: Why is res.download() not working when passing in file path?
body: <p>Hello everyone I'm trying to create a feature to allow users to enter a file path and download it. I'm using a form with an input of type text to get the path. I'm using Node.js and Express router to handle to the get and post requests. For some reason my res.download isn't working.</p>
  <pre><code>router.get('/downloadFiles', (req, res, next) =&gt; {
    const filePath = req.query.filePath;
    res.download(filePath);
    res.redirect('/');
  });
  </code></pre>