我创建了支持下载和上传功能的 asp 表单。见下文
<html>
<head>
<title>Testing</title>
<script type="text/javascript">
function clickUpload() {
document.getElementById("UploadFile").click();
}
function clickDownload() {
document.getElementById("DownloadForm").submit();
}
function MakeUpload() {
document.getElementById("UploadForm").submit();
}
</script>
</head>
<body>
<form action="Test1.asp">
<input type="button" value="Upload" onclick="clickUpload();" />
<input type="button" value="Download" onclick="clickDownload();" />
<form id="UploadForm" action="test3.asp" enctype="multipart/form-data">
<input type="file" id="UploadFile" onchange="MakeUpload();" style="display:none" />
</form>
<form id="DownloadForm" action="Test4.asp">
</form>
</form>
</body>
</html>
目前,上传不起作用。我该如何解决这个问题?谢谢。