变量未定义: 'sjCat_Upload'

[复制链接]
查看11 | 回复1 | 2008-8-27 08:43:01 | 显示全部楼层 |阅读模式
懂ASP的大哥..快来救命.
关于上传图片文件
提交到upfile.asp后.出现以下错误...
------------------------------------------------------
Microsoft VBScript 运行时错误 ';800a01f4';
变量未定义: ';sjCat_Upload';
\wwwroot\2\upfile.asp, line 9
-----------------------------------------------------------------------
这是upfile源文件............


请先选择你要上传的图片 [ [url=]重新上传[/url] ]"
response.end
end if
fileExt=lcase(right(file.filename,4))
if fileEXT".gif" and fileEXT".jpg" then
response.write "文件格式不对 [ [url=]重新上传[/url] ]"
response.end
end if
if file.filesize>102400 then ';这是100K的图片大小数据
response.write "图片大小超过了限制(不大于100K) [ [url=]重新上传[/url] ]"
response.end
end if
filename=formPath&year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)&fileExt
if file.FileSize>0 then

file.Save2File Server.mappath("uptupian") & "\" & FileName
iCount=iCount+1
end if
set file=nothing
set upload=nothing
set rs=server.createobject("adodb.recordset")
sql = "select tupian from xinxi where username=';"&username&"'; and id="&cstr(id)
rs.open sql,conn,1,3
if rs.eof then
response.write "参数错误!"
response.end
else
rs("tupian")=filename
rs.update
end if
rs.close
set rs=nothing
closedb
response.write "图片成功上传!"
response.write ""
%>

回复

使用道具 举报

千问 | 2008-8-27 08:43:01 | 显示全部楼层
确认一下inc/upfile.inc这个文件中声明的类是不是sjCat_Upload...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行