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: General / Classic ASP versions(v3.4.XX)
 Error Message Uploading a Gif Image
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaGraham
Senior Member

USA
1297 Posts

Posted - 27 February 2012 :  22:27:41  Show Profile  Reply with Quote
Can anyone help me with this error? There are no spaces in the file name.


Request object error 'ASP 0104 : 80004005'

Operation not Allowed

/gallery2/outputFile.asp, line 71


Here are lines 66 - 94 below with line 71 being in red.



byteCount = Request.TotalBytes
RequestBin = Request.BinaryRead(byteCount)
Dim UploadRequest
Set UploadRequest = CreateObject("Scripting.Dictionary")
BuildUploadRequest RequestBin
membername = UploadRequest.Item("memberName").Item("Value")
subfolder = strForumUrl & strUploadUrl & "/" & membername
contentType = UploadRequest.Item("blob").Item("ContentType")
filepathname = UploadRequest.Item("blob").Item("FileName")
filename = Right(filepathname,Len(filepathname)-InstrRev(filepathname,"\"))
oldfilename = filename
filename = Year(Now) & Month(Now) & Day(Now) & Hour(Now) & Minute(Now) & Second(Now) & "_" & filename


' --- CHECK FILE FOR ACCEPTABILITY ---

if oldfilename = "" then
response.redirect "pop_upload_new.asp"
else
extension = LCase(Mid(filename,InStrRev(filename,".")))
end if

ImageFileType=false
AllowFile=false
AllowExpression=false



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

MaGraham
Senior Member

USA
1297 Posts

Posted - 27 February 2012 :  22:37:02  Show Profile
The dimensions of the gif - 325 x 499

Gif size - 231 KB




"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 28 February 2012 :  02:47:21  Show Profile  Visit HuwR's Homepage
This is a server side issue related to the settings for the IIS service. When you received this error, the amount of data that can be received in the "request object" is likely restricted, some servers have a restriction as low as 200 KB.

You will need to ask your web host about it.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 28 February 2012 :  08:42:40  Show Profile  Visit bobby131313's Homepage
I would suggest that you limit file size to 100KB. I can't think of any situation that you would need more than that.

Check out this 92KB image....





You need bigger/better than that?


Search for If allowFile and byteCount <= in that file and make the value 102400 if you agree.

Switch the order of your title tags

Edited by - bobby131313 on 28 February 2012 08:43:05
Go to Top of Page

Pertinax4
Starting Member

United Kingdom
10 Posts

Posted - 30 June 2013 :  21:02:49  Show Profile
I would like to be able to allow users to upload images but where do I get the pop_upload_new.asp script from, please ?
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 01 July 2013 :  00:39:57  Show Profile
That's part of Mike's File Attachment
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 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