<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>
本文转自 小眼儿 博客园博客,原文链接:http://www.cnblogs.com/hujunzheng/p/4114448.html,如需转载请自行联系原作者