How to get the path of a file before its uploaded?

Posted by user172247 on Stack Overflow See other posts from Stack Overflow or by user172247
Published on 2010-03-20T04:32:23Z Indexed on 2010/03/20 4:41 UTC
Read the original article Hit count: 240

Filed under:
|

I have an upload box...

  < form action="upload_file.php" method="post" enctype="multipart/form-data"><BR>
  < label for="file">Filename:</label><BR>
  < input type="file" name="file" id="file" /><BR> 
  < input type="submit" name="submit" value="Submit" />
  < /form>

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 < img > tag so It will show to get a preview before I upload.

© Stack Overflow or respective owner

Related posts about web-development

Related posts about php