无组件上传再次提示

xuen30 2004-11-22 02:42:01
这是提交页面
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="486" height="284" border="0" align="center">
<tr>
<td height="280"><table width="100%" border="0" align="center">
<tr>
<td><FORM action=upload-save.asp method="post" enctype="multipart/form-data" name=will>
<DIV align=center>
<TABLE border=0 borderColor=#111111 cellPadding=0 cellSpacing=0 id=AutoNumber1
style="BORDER-COLLAPSE: collapse" width=100%>
<TBODY>
<TR>
<TD><img src="img/r1.gif" ></TD>

<TD><img src="img/r2.gif" ></TD>
</TR>
<TR>
<td>

<table width="460" border="0">
<tr>
<td width="100"> <strong>上传者姓名:</strong></td>
<td width="354"><input name="username" type="text" id="username"

size="20" maxlength="20"></td>
</tr>
<tr>
<td width="92"><div align="center"><strong>上传图片:

</strong></div></td>
<td width="354"><INPUT TYPE="file" NAME="file1">
<input type="hidden" name="filepath" >
</td>
</tr>
<tr>
<td width="92"><div align="center"><strong>备 注:</strong></div></td>
<td width="354"><textarea name="beizhu" cols="45" rows="10"

id="beizhu"></textarea></td>
</tr>
</table></TD>
<TD background=img/r_bgright.gif width=21></TD>
</TR>
<TR>
<TD width=21>
<P align=right><IMG src="img/r_bgtop.gif" border=0></P></TD>
<TD background=img/r_bgend.gif width=458>  </TD>
<TD width=21><IMG
src="img/0021.gif" border=0></TD>
</TR>
</TBODY>
</TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="50%">
<TBODY>
<TR>
<TD>
<DIV align=center>
<input type="submit" name="Submit" value="提 交">
</DIV></TD>
<TD>
<DIV align=center>
<input type="reset" name="Submit2" value="重 填">
</DIV></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<input type=hidden name=invalid value=invalid>
</FORM></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
这是接收页面
<!--#include FILE="upload.zip"-->
<html>
<head>
<title>文件上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<BODY>
<%
Dim Conn,Rs_News,cpm,upload,file,formName,formPath,filename,d,a
Set Conn = server.CreateObject("ADODB.CONNECTION")
cpm="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&server.mappath("databook.mdb")
Conn.Open cpm

set upload=new upload_5xSoft
formPath=upload.form("filepath")
set file=upload.files("file1")
username=upload.form("username")
beizhu=trim(upload.form("beizhu"))
if file.FileSize>0 then
a=trim(file.FileName)
filename="down/"&a
file.SaveAs Server.mappath(filename)
end if
Sql="insert into filename(username,filename,beizhu) values('"&username&"','"&a&"','"&beizhu&"')"
Conn.Execute Sql

set file=nothing
set upload=nothing
conn.close
set conn=Nothing
%>
<center><br>
<br><br><br><br><font color=red><b>请稍等,正在保存信息...</b></font></center>
<form name=loading>
<p align=center>
<font color="#0066ff" size="2" face="Arial">loading...</font><input type=text name=chart
size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:white;
padding:0px; border-style:none;"> <br> <input type=text name=percent size=47
style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">
<script>
var bar=0
var line="||"
var amount="||"
count()
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",100);}

}</script></p></form><br>
<center>
<font color=red><b>数据保存完成后,自动返回!!!!!!!!!!!!!</b></font>
</center>
<meta http-equiv="refresh" content="5;url=upload.asp">
</body>
</html>
错误类型:
Microsoft VBScript 运行时错误 (0x800A01B6)
/wwwwww/upload-save.asp, 第 16 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; TencentTraveler )

页:
POST 293 bytes to /wwwwww/upload-save.asp

POST 数据:
错误 '80020009'
发生意外。

/iisHelp/common/500-100.asp,行184

运行时,老是出现这样的错误:

...全文
103 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dragonhell 2004-11-22
  • 打赏
  • 举报
回复
我晕,全贴上来了。
bearzhan88 2004-11-22
  • 打赏
  • 举报
回复
1。用的是化境,你是用文件格式存放图片,但是我没见到你建立FSO啊,51X里面对文件上传有2种,一是数据入库,2是文件格式。
你建立FSO再试一下
2。或者是这个原因:
上传文件太大也不行。
3。 filename="down/"&a
这是你指定的路径吧,应该用 “\”,而不是“/”
gu1dai 2004-11-22
  • 打赏
  • 举报
回复
呵呵 意外 你跟了没有。
你用的哪个上传类阿。
jiank 2004-11-22
  • 打赏
  • 举报
回复
哪一句错误,贴出来

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧