title: how to get selected file path in javascript
body: <p>get selected file path from JavaScript. Hi! I want to get selected file path from JavaScript </p>
  
  <pre><code>&lt;input type="file" class="input-file" id="inputfile" onchange="ReadFile()"&gt;
  </code></pre>
  
  <p>here I want to assign file path to model.</p>
  
  <pre><code>function GetFileProerties() {
      var fileproperties = {
          "FileName": upload.files[0].name,
          "FilePath": ** here i want to assign selected file path ** ,
          "FileType": upload.files[0].name.substr((upload.files[0].name.lastIndexOf('.') + 1)),
          "FileSize": upload.files[0].size,
          "Modified Date": upload.files[0].lastModifiedDate
      }
      return JSON.stringify(fileproperties);
  }
  </code></pre>