Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to get full path from uploaded file in java script.please help me
Posted

Why you want the client file path on server? The discussion in following thread will let you know how it goes
http://forums.asp.net/t/1077850.aspx/1?getting+the+full+file+path+from+a+FileUpload+control[^]
 
Share this answer
 
try this:

<script>

function getfilename()
{
 var filename=document.getElementById("filename").value;
 alert(filename);
}

</script>
<form onsubmit="getfilename();">

<input name="filename" id="filename" type="file"/>

<form /></form>


hope this helps :)
 
Share this answer
 
As far as I am aware this is not possible due to security restrictions.
 
Share this answer
 
Comments
raju melveetilpurayil 27-Jun-11 4:46am    
I think IE only return full path

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900