Author |
Topic  |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 27 February 2012 : 22:27:41
|
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
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 28 February 2012 : 02:47:21
|
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 |
 |
|
bobby131313
Senior Member
   
USA
1163 Posts |
Posted - 28 February 2012 : 08:42:40
|
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 |
 |
|
Pertinax4
Starting Member
United Kingdom
10 Posts |
Posted - 30 June 2013 : 21:02:49
|
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 ? |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 01 July 2013 : 00:39:57
|
That's part of Mike's File Attachment |
 |
|
|
Topic  |
|