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>

Vijay,

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

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.