I have a file browse dialog page,I use it to browse the file name to do import operation on submit of form, I am able to get the filename, but fails to get full file path in Firefox, this code works fine in IE and returns full file path, but in Firefox it only returns the file name, I want full file path to do import operation.
can anyone tell what is the solution in Firefox
Code: Select all
script type="text/javascript">
function performClick(elemId)
{
var elem = document.getElementById(elemId);
alert(elem.value);
}
}
</script>
<a href="#" onclick="performClick('theFile');">Open file dialog</a>
<input type="file" id="theFile" name = "theFile" />
thanks in advance