954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to get full path from a file input field

How to get full path from a file input field , i am getting only the image name using this code please help me

<body>
<script type = "text/Javascript" >
function show_filename()
{
var filename = document.getElementById('eve').value;
alert(filename);
}
</script>

<form>
  <p>
  <input name="text1" type = "file" id = "eve" size = "40" >
  </p>
  <p>
  <input type="Button" name="Submit" id="mybut" value="Submit" onclick="show_filename()" />
  </p>
</form>
</body>
vijaysoft1
Junior Poster in Training
81 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

Vijay,

Must be browser-dependent behaviour. IE6 shows full path starting at c:\....

Airshow

Airshow
WiFi Lounge Lizard
Moderator
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You