title: Javascript: Upload directory and get it's absolute path
body: <p>I have a Browse button wherein I've to show a dialog box to allow the user to browse to the specific folder that he/she wants to upload.</p>
  
  <p>The only thing I've to do is to get that folder's absolute path for all systems.</p>
  
  <p>I tried something but to no success:</p>
  
  <pre><code>&lt;input type="file" value="Browser Folder" onChange="selectFolder(event)" webkitdirectory directory&gt;
  
  &lt;script type="text/javascript"&gt;
      function selectFolder(e) {
          var theFiles = e.target.files;
          console.log(theFiles);
          console.log(e);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>The <strong>eFiles</strong> only returns the list of files. How can I get the absolute path for the selected folder.</p>
  
  <p>Is there any library or something that allows a user to select a folder and get it's absolute path irrespective of the system he/she is using.</p>
  
  <p>Suggestions are welcome. Thanks in advance!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I need to access the folder via dialog box and get the absolute path of selected folder.</p>