title: Get Folder path using React js
body: <p>I want to get path of the folder so that i need to post the path of the selected folder to the backend so it receives like this</p>
  <pre><code>string path2 = Path.GetDirectoryName(@&quot;C:\Users\Public\Desktop\workspace\&quot;);
  </code></pre>
  <p>I tried <code>&lt;input directory=&quot;&quot; webkitdirectory=&quot;&quot;  type=&quot;file&quot; /&gt;</code>it doesn't show the path of the folder it just shows like <code>foldername/filename.jpg</code> i want the path like <code>C:\Users\Public\Desktop\workspace\</code> kindly guide me how to do that.</p>