您的位置:首页 > 其它

commons-fileupload 上传时传递参数问题解决

2011-03-18 11:17 246 查看
<script type="text/javascript">
function send(){
document.getElementById("formid").action = "<%=basePath %>login.jsp?images=" + document.getElementById("textvalue").value;
document.getElementById("formid").submit();
}
</script>
<body>
<form action="" id="formid" method="post" enctype="multipart/form-data"> 
<input type="text" id="textvalue"/>
<input type="file" name="file"/>

<input type="button" onclick="send()">
</form>

在form中post不能再传非数据类型,只能用get。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐