title: How can I get the file path of a chosen file in ReactJS?
body: <p>I'm currently creating an input in React by which a user can click on a button and open a browse box to select a file. The goal is to <strong>find the file path of the chosen file</strong>.</p>
  <p>I'm aware that it is impossible to get the filepath from just a simple <code>&lt;input type=&quot;file&quot;/&gt;</code> due to security reasons but I was wondering if there is a way to do it that I just haven't found or even a method in node that I could utilize by passing the file name to a node.js back end that could help me find the path.</p>
  <p>I've also already looked into the fs-path npm package in node to find all paths and files so I could potentially match the file name to it's path but this doesn't help me if there is more than one file with the same name in a different path.</p>
  <p>I can't seem to find any other suggestions except for just uploading the entire file's contents, which is not what I want to do.</p>