ie获取上传文件的真实路径
IE9(已尝试OK)
<script type="text/javascript">
function getFullPath() {
var file_upl = document.getElementById("file_upl");
file_upl.select();
file_upl.blur();
var realpath = document.selection.createRange().text;
alert(realpath);
}
</script>
<input type="file" id="file_upl" onchange ="getFullPath()" />
其他IE(未尝试)
var tt = document.getElementById("file_upl");
tt.select();
var realpath = document.selection.createRange().text;