很急啊,帮我看看这个问题
<HTML>
<BODY>
<FORM ACTION="download.asp" ENCTYPE="multipart/form-data" METHOD=POST>
ファイル: <INPUT TYPE=file NAME="file"><BR>
<INPUT TYPE=SUBMIT NAME=UPLOAD>
</FORM>
</BODY>
</HTML>
这个是创建的一个页面。页面上有一个text框,还有一个参照按钮,选择一个文件后。我点确认按钮后,想把选择的这个文件保存的别的路近。我点那个确认按钮后执行下面的代码
<%
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment; filename="&request("downloadname")&""
response.binarywrite getBinaryFile(Server.MapPath("../download/"&request("downloadname")&""))'
function getBinaryFile(fileSpec)
Dim adTypeBinary
adTypeBinary = 1
Dim oStream
set oStream = server.createobject("ADODB.Stream")
oStream.Open
oStream.Type = adTypeBinary
oStream.LoadFromFile fileSpec
getBinaryFile= oStream.read
set oStream=nothing
end function
%>
可是就是不成功呢
大家帮我看看啊。