I am looking for file path store in local system for eg. when I select file and post to another page then I Just want it's real path.
<form action="post.php" method="post" enctype="multipart/form-data">
Select File: <input type="file" name="file">
<input type="submit" name="submit" value="Upload File!" />
</form>
I know how to upload file but I don't wan't to upload file Just want to read path of that selected file for Eg.
C:/Users/Public/Pictures/Sample%20Pictures/Koala.jpg
Actually I am working on Exeoutput for PHP 2 it's running on local server so when user upload file it's not support file upload so am trying to store file path for image upload , so when ever program will start so selected image will autoamtically will show
<img href='C:/Users/Public/Pictures/Sample%20Pictures/Koala.jpg'/>
Thanks In Advance
You can't.
File inputs are designed to upload files.
For security reasons, they conceal information about where exactly the file came from. In the context of the WWW, it should not matter to the server where the user kept the file on their computer.
Even though you are using an HTTP server and web browser in a non-WWW content, you can't override these security features.