0

I have an html form with input as file.

<form action="" method="post" enctype="multipart/form-data" class="form hideit2">
  <input type="file" name="file" id="file" /> 
  <input type="submit" name="submit" value="Submit" class="btn btn-info" />
</form> 

I just want to browse the file and get its full path on users system without uploading it to the server.

Eg:- $myvariable = 'C:/user/username/desktop/filename';

Is this possible? Let me know the way.

Deepak S Rautela
  • 67
  • 1
  • 1
  • 13
  • Nope..you cannot get local machine path from server – sudipta06 Sep 28 '15 at 07:38
  • What do you mean by "browse the file"? How can a program "browse" anything? – chx Sep 28 '15 at 07:40
  • for what purpose? a bit of background might help us guide you better. – DevDonkey Sep 28 '15 at 07:48
  • @DevDonkey I am processing a video after uploading it to my localhost/upload folder. Since i have the video on my desktop so i dont want to unnecessarily copy(or upload) it to another folder on localhost of my PC. I want to use the video straight from desktop folder. – Deepak S Rautela Sep 28 '15 at 07:59

1 Answers1

0

It is not possible. Can't you imagine the security breach that would imply? That would be like giving full control of your local machine to the server hosting the page.

Amarnasan
  • 14,939
  • 5
  • 33
  • 37