title: How to get the path of a file before its uploaded?
body: <p>I have an upload box...<BR></p>
  
  <pre><code>&lt;form action="upload_file.php" method="post" enctype="multipart/form-data"&gt;&lt;BR&gt;
      &lt;label for="file"&gt;Filename:&lt;/label&gt;&lt;BR&gt;
      &lt;input type="file" name="file" id="file" /&gt;&lt;BR&gt; 
      &lt;input type="submit" name="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now when I click browse and get the Image I want to upload and click it, it shows the path of the file into the text box that comes with. Now I want to get that path and insert it into a <code>&lt;img&gt;</code> tag so It will show to get a preview before I upload.</p>