Possible Duplicate:
<input type='file'> IE Gives full path, FF gives only filename (or directory browse)
how to resolve the C:\fakepath?
the getImage() function returns the correct full path of the file selected in the tag in IE .. But it returns only the filename in firefox.. Please do help. I need the full path name in all browsers..
getImage() {
var location=document.getElementbyId("photo").value;
}
<body>
<input type=file; id=photo;>
</body>