通过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>
本文来自博客园,作者:hjzqyx,转载请注明原文链接:https://www.cnblogs.com/hujunzheng/p/4114448.html