通过js获得选择文件的绝对路径

       <form name="thisform" method="get"  action="test.jsp" id="thisform" enctype="multipart/form-data">
                <input type="file" name="theFile" onchange="document.getElementById('theFilePath').value=this.value"/>  
                <input type="hidden" id="theFilePath" name="theFilePath" value="">
                <br>
                <input type="submit" name="submit" value="提交">
       </form>

 

posted @ 2014-11-21 23:25  hjzqyx  阅读(2999)  评论(0编辑  收藏  举报