Author |
Topic |
|
edmartin
Starting Member
46 Posts |
Posted - 05 August 2004 : 21:09:03
|
Can anyone tell me how to increase the file size limit in Mike's file attachment mod? Please? |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 06 August 2004 : 06:21:22
|
Find the following on line 39 of outputFile.asp and increase the 80000 to the number of bytes you want to allow:If allowFile and byteCount <= 80000 Then |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
edmartin
Starting Member
46 Posts |
Posted - 06 August 2004 : 08:09:35
|
Hmm. I was afraid of that. I figured that was the line and had tried to up it but I'm still getting an error. The test file I'm working with is just under 275,000 bytes. I changed the line above to 300000. But it gets maybe a 3rd of the way in & I get this error message: Request object error 'ASP 0104 : 80004005'
Operation not Allowed
/forum/outputFile.asp, line 13
Line 13 reads: RequestBin = Request.BinaryRead(byteCount)
The test file is a PDF. It's in my allow list. But even if I ZIP it or just go ahead and change the extension, same problem. Likewise, if I try any other file over about 100000 bytes, I get this same error.
FYI, small files (I've tried a number of them under 100000 bytes) all seem to work fine.
Help? |
Edited by - edmartin on 06 August 2004 08:12:51 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 06 August 2004 : 10:47:26
|
Ah, OK, that error's not realted to the size of the file; it just doesn't like BinaryRead(). Try adding enctype="multipart/form-data" to your form tag.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
edmartin
Starting Member
46 Posts |
Posted - 06 August 2004 : 13:44:58
|
quote: Originally posted by Shaggy
Ah, OK, that error's not realted to the size of the file; it just doesn't like BinaryRead(). Try adding enctype="multipart/form-data" to your form tag.
I think it's already there. Here is a cut & paste from my pop_upload_new.asp file:
Response.Write "<table bgColor=""" & strHeadCellColor & """ valign=""center"" width=""95%"" height=""95%"">" & vbNewline & _ " <tr>" & vbNewline & _ " <td align=""center"" width=""100%"">" & vbNewline & _ " <FORM METHOD=""Post"" ENCTYPE=""multipart/form-data"" ACTION=""outputFile.asp"">" & vbNewline & _ " <font face=""" & strDefaultFontFace & """ size=""" & strHeadFontSize & """ color=""" & strHeadFontColor & """><b>File: </b></font><INPUT TYPE=""file"" NAME=""blob"" size=""40""><BR><br>" & vbNewline & _ " <input type=""hidden"" name=""memberName"" value=""" & strDBNTUserName & """>" & vbNewline & _ " <INPUT TYPE=""submit"" NAME=""Enter"" value=""Upload File to " & strDBNTUserName & "'s post"" onclick=""value='Wait... Uploading File...';""></p>" & vbNewline & _ " </FORM>" & vbNewline & _ " <input name=""PreviousFile"" type=""button"" value=""My Previously Uploaded Files"" onclick=""JavaScript:window.location=('myfiles.asp?InsertFile=select');"">" & vbNewline & _ " </td>" & vbNewline & _ " </tr>" & vbNewline & _ "</table>" & vbNewline
??? |
Edited by - edmartin on 06 August 2004 13:46:29 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 09 August 2004 : 09:15:05
|
* sctraches head! * Sounds like their may be a buffer on your host preventing the upload of files over a certain size. Can you get your host to confirm or deny this before we go any further?
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
Machina
New Member
Switzerland
74 Posts |
Posted - 05 October 2004 : 09:16:53
|
Hi all,
here's the answer I found on the net :
Q3: My server is IIS 6, and I cannot upload more than 200KB at a time? If I upload more than 200KB of data, I got the following error: Operation not Allowed, which happens at the line that calls the Request.BinaryRead method.
A3: The new metabase in IIS 6 has a restriction on the maximum file size ASP script can upload. Do the following to correct this issue (thanks to Ittech for the info)
quote:
Here's the code from the metabase.xml, which you can edit and it applies changes in realtime. Never restarted the forum/site :)
Gotta look under the header <IIsWebService Location ="/LM/W3SVC"
or for whatever service location site name you are using...
Change AspMaxRequestEntityAllowed="204800" to AspMaxRequestEntityAllowed="10238976"
http://www.aspplayground.net/forum/Upload_feature_is_not_working!/m_376095/tm.htm |
Machina ------- http://www.jaboulay.fr -------- Snitz based site: http://www.itu.int/YLinICTs MODS Used : TMPJ's Header Cell Image, Site Integration, Front Page News, News Events Calendar, Nikkol's Usergroups, Simple Slash, Avatar, File Sharing, Links |
|
|
|
Topic |
|