<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>
时间: 2024-10-12 15:06:40