title: How to get full path of file using input type file in javascript?
body: <p>I want to implement an attachment feature for email, like Gmail has, using jquery+javascript.</p>
  
  <p>So I use input type file to select the file - which gives only the name of file, not the full path of file where it is located. I want the full path of file so that I convert file into bytes then send ajax request to server with bytes of file. I used this:</p>
  
  <pre><code>&lt;input type="file id="fileUpload"&gt;
  var filePath=$('#fileUpload').val(); 
  </code></pre>
  
  <p>but the <code>filePath</code> var contains only name of selected file, not the full path. I searched it on net, but it seems that for security reasons browsers (FF,chrome) just give name of file. </p>
  
  <p>Thank you.</p>