我用 window.open 打开一个窗口作为上传窗口,我想上传成功后关闭窗口,我是这样做的,但是出现错误:
<html:form action="..." enctype="...." styleId="form1">
<html:file property="theFile"/>
<html:button property="aa" onclick="upload();">提交</html:button>
</html:form>
<script type="text/javascript">
function upload(){
document.form1.submit();
window.close();
}
</script>
当我点击“提交”后,tomcat报下面的错误:
Processing of multipart/form-data request failed. Connection reset
不知道为什么??
<html:form action="..." enctype="...." styleId="form1">
<html:file property="theFile"/>
<html:button property="aa" onclick="upload();">提交</html:button>
</html:form>
<script type="text/javascript">
function upload(){
document.form1.submit();
window.close();
}
</script>
当我点击“提交”后,tomcat报下面的错误:
Processing of multipart/form-data request failed. Connection reset
不知道为什么??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货