Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 File Upload MOD
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

InDepthArts
New Member

77 Posts

Posted - 18 May 2001 :  18:57:48  Show Profile  Visit InDepthArts's Homepage
Hey guys,

I installed Huwr's file upload MOD and am getting the following error when I try to upload something:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Request.TotalBytes'

/cgi-bin/idd/Mods/UploadEngine.asp, line 79


Any ideas?

Eric

InDepthArts
New Member

77 Posts

Posted - 20 May 2001 :  19:23:19  Show Profile  Visit InDepthArts's Homepage
bumpity bump bump... anyone have a clue as to how to fix this? Otherwise I guess I will have to remove this one.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 May 2001 :  20:04:43  Show Profile  Visit HuwR's Homepage
I would say your servers version of the scripting engine doesn't suport this attribute.

What is your server ?

Go to Top of Page

InDepthArts
New Member

77 Posts

Posted - 21 May 2001 :  00:04:12  Show Profile  Visit InDepthArts's Homepage
HuwR,

Thanks for the response! I believe it is NT4/IIS4. Is there any way around that attribute?

Eric

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 May 2001 :  04:59:46  Show Profile  Visit HuwR's Homepage
well you could remove the filesize check I think it is only used for that.

Go to Top of Page

InDepthArts
New Member

77 Posts

Posted - 21 May 2001 :  11:42:15  Show Profile  Visit InDepthArts's Homepage
How do I go about doing that?
Go to Top of Page

InDepthArts
New Member

77 Posts

Posted - 03 June 2001 :  22:41:59  Show Profile  Visit InDepthArts's Homepage
Anyone?
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 June 2001 :  08:18:43  Show Profile  Visit HuwR's Homepage
in upload engine.asp, look for the following section of code, and remove the lines I have highlighted in red


If Request.TotalBytes > 0 Then
Set objUpload = new clsUpload
objUpload.ParseRequest
If (objUpload.Files.Count = 1) Then
strFolder = objUpload.Form.Item("Folder")
TopicID = objUpload.Form.Item("TOPIC_ID")
ReplyID = objUpload.Form.Item("REPLY_ID")
ServerTimeout = objUpload.Form.Item("TimeOut")
if ReplyId = "" then
ReplyID = -1
end if
if TopicID = "" then
TopicID = -1
end if
MemberID = objUpload.Form.Item("MEMBER_ID")
faname = objUpload.Files.Item(0).FileName
boolAllowedType = Instr(strAllowedExtensions, Right(objUpload.Files.Item(0).FileName,4)) > 0
ImageFile = Instr(".jpg,.gif", Right(objUpload.Files.Item(0).FileName,4)) > 0
intFileLen = len(objUpload.Files.Item(0).Blob)
if intFileLen > MaxFileSize then
strResult = "File is too Large to upload"
else
if boolAllowedType then
Response.write "Uploading.... Please wait"
boolSuccess = saveDoc()
If boolSuccess = "True" Then
intoDB()

strResult = "The File " & objUpload.Files.Item(0).FileName & " was uploaded to the Server"
End If
else
strResult = "File Type Not Allowed"
end if
end if
Else
strResult = "No file to upload."
End If
End If


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07