[求助]上传图片的问题
upload.html
<html>
<head><title>文件上传</title></head>
<body>
<form name="picture" enctype="multipart/form-data" action="upload.asp" method="post">
请选择要上传的文件: <br>
<input name="picture" type=file accept="image/*"><br>
<input type=submit value="上传"></form>
</body>
</html>
asp文件是:
upload.asp
<html>
<body>
<%
name=request.form("picture")
Dim objstream
Set objstream=server.createobject("adodb.stream")
objstream.type=1
objstream.open
objstream.LoadFromFile name
objstream.savetofile server.mappath("1.jpg"),2
objstream.close
%>
</body>
</html>
错误是:
ADODB.Stream 错误 '800a0bb9'
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/upload.asp,行18
我曾经测试过,发现form中输入的文件的的名字传不过来,我猜问题可能出在html页面,可能也不是,:)大家帮帮忙吧;谢谢了