求助:上传不了文件
提示报错AceCRM 错误 '800a005b'
Object variable or With block variable not set
/bbs/AddUploadFileExe.asp,行 70
代码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<p><%@ Language=VBScript %><br />
<% Option Explicit %><br />
<% Response.Expires = 0 %><br />
<% Response.Buffer = True %><br />
<% Server.ScriptTimeout = 600 %><br />
<!--#include file = "../System/Adovbs.inc" --><br />
<!--#include file = "../System/ConstDefine.asp" --><br />
<!--#include file = "../System/FunDefine.asp" --><br />
<!--#include file = "../System/VarDefineExe.asp" --><br />
<%<br />
'上传附件直接保存为文件的模式,不要删除<br />
'======================================<br />
'Dim upfile<br />
'Set upfile = Server.CreateObject("uploadcom.upfile")<br />
'upfile.FileSaveAs("d:\"+upfile.FileName)<br />
'set upfile = nothing<br />
'Response.End<br />
'======================================</p>
<p>%></p>
<p><%<br />
If szEmployeeName = "8888观摩客人" Then<br />
writeGoBack TEXT_NWQM<br />
Set objCommon = Nothing<br />
Set objConn = Nothing<br />
Response.End<br />
End If</p>
<p>Dim szCreatorTypeID<br />
Dim szCoObjectTypeID<br />
Dim szCreatorName<br />
Dim szContent<br />
Dim vBinaryData<br />
Dim nMaxUploadFileSize<br />
Dim szCoObject<br />
Dim szSubject<br />
Dim szisEdit<br />
Dim szLinkType<br />
</p>
<p>szSubject = Request("Subject")<br />
szCoObject = Request("CoObject")<br />
szCreatorTypeID = szEmployeeTypeID<br />
szCreatorName = Trim(Request("CreatorName") & "")<br />
szContent = Request("Content")<br />
szCoObjectTypeID = Trim(Request("CoObjectTypeID") & "")<br />
szLinkType = Request("LinkType") & ""<br />
szisEdit = Request("isEdit")<br />
'szCoObjectTypeID = "Email"<br />
vBinaryData = Request.BinaryRead(Request.TotalBytes)</p>
<p> </p>
<p>nMaxUploadFileSize = getParameterValue("MaxUploadFileSize") * 1024 * 1024 + 400</p>
<p>If Request.TotalBytes > nMaxUploadFileSize Then<br />
Response.Write "<SCRIPT LANGUAGE=javascript>alert('附件大小不能超过" & getParameterValue("MaxUploadFileSize") & "M字节!');history.back();</SCRIPT>"<br />
Response.End<br />
End if<br />
</p>
<p>%><br />
<%<br />
Dim objUtility<br />
Set objUtility = Server.CreateObject("AceCRM.Utility")<br />
%><br />
<%</p>
<p>If objUtility.AddUploadFile(szCreatorTypeID,szCoObject,szCoObjectTypeID,vBinaryData,szConnStr,GetAttachmentDir(),BBSAttachment) Then<br />
Else <br />
writePageErrorInfo 1003,objUtility.GetLatestError<br />
Response.End<br />
End If</p>
<p>%><br />
<%<br />
Set objUtility = Nothing<br />
Set objCommon = Nothing<br />
Set objConn = Nothing<br />
%><br />
<%<br />
If szisEdit = "Yes" Then<br />
%><br />
<SCRIPT LANGUAGE=javascript><br />
<!-- <br />
window.location.href = '../BBS/EditUploadFile.asp?LinkType=<% =szLinkType%>&Uid=<% = szUID %>&CoObject=<%=szCoObject%>&CoObjectTypeID=<%=szCoObjectTypeID%>&isEdit=<%=szisEdit%>' ;<br />
//--><br />
</SCRIPT><br />
<%<br />
Else<br />
%><br />
<SCRIPT LANGUAGE=javascript><br />
<!-- <br />
window.location.href = '../BBS/AddUploadFile.asp?Uid=<% = szUID %>&CoObject=<%=szCoObject%>&CoObjectTypeID=<%=szCoObjectTypeID%>&isEdit=<%=szisEdit%>';<br />
//--><br />
</SCRIPT><br />
<%<br />
End If<br />
%></p>
</body>
</html>