关于aspsmartupload的问题
想用aspsmartupload组件上传文件,但遇见个奇怪的问题
代码:
demo.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form action="demo.asp" method="post" enctype="multipart/form-data" name="form1">
<input type="file" name="file">
<input type="submit" name="Submit" value="提交">
</form>
</body>
</html>
demo.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
dim myupload
dim intcount
set myupload = server.CreateObject("aspSmartUpload.SmartUpload")
myupload.Upload
intcount = myupload.save
Response.Write(intCount & " file(s) uploaded.")
%>
</body>
</html>
如果是这么写,文件可以上传。但是如果代码是:
demo.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
dim myupload
dim intcount
set myupload = server.CreateObject("aspSmartUpload.SmartUpload")
myupload.Upload
intcount = myupload.save("/upload")
Response.Write(intCount & " file(s) uploaded.")
%>
</body>
</html>
就抱错 http 500 服务器内部错误
这是为什么?请各位指点