Author |
Topic |
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 18 April 2013 : 22:54:23
|
Glad it works... Did not stand out to me first up, then went hang on there was extra characters added, so the length needs increase.. |
Cheers, David Greening |
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 19 April 2013 : 02:39:57
|
Well I live and learn - many thanks |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 26 February 2015 : 15:08:19
|
Suddenly, it has been reported that file attachments are rejecting pictures [proper format]:
Getting this:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
/messageboard/outputFile.asp, line 13
I tried myself ... it will not take a photo over 90KB. I have never had it set so small. How in the world do I make that size bigger? It's been so long since I set up that MOD, I can no longer recall.
Thanks! |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 26 February 2015 : 18:39:10
|
quote: Originally posted by richfed
I tried myself ... it will not take a photo over 90KB. I have never had it set so small. How in the world do I make that size bigger? It's been so long since I set up that MOD, I can no longer recall.
Mike configured his in "output_file.asp", line 39:
If allowFile and byteCount <= 80000 Then
Change the value (80000) to whatever size (in bytes) that you'd like to allow. 80,000 is fairly small. Each KB is 1024 bytes, so that size is just under 80KB. 1MB would be 1048576 bytes. |
Edited by - Carefree on 26 February 2015 18:41:01 |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 27 February 2015 : 08:48:25
|
If I remember right, there is an upper limit to what IIS will accept using this mod's technique. I don't recall what it was, though I do know it should be more than enough for all but the most abusively large photos. I would suggest looking for that upper limit just so you don't try and set the size constraint higher than what IIS will allow. |
|
|
golfmann
Junior Member
United States
450 Posts |
Posted - 27 February 2015 : 12:14:05
|
Is there a way to make it "focus" back to the original "quick reply" post after uploading? On mine it keeps going to the top of the page and you always have to scroll down... :) |
Edited by - golfmann on 28 February 2015 12:07:38 |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 27 February 2015 : 13:30:22
|
Thanks Carefree ... I changed that value to double the 1MB. I tested it and it was working fine for me - last night at 3:15 AM, anyway. :-) We'll see if this fellow has any luck. I don't know why he was having issues - or what happened server side - the MOD has been working well for years. He posts quite frequently - photos of his trips to historical sites. In the past, he has posted full-size images --- he was now being limited to somewhere around that 80KB you mentioned. |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 27 February 2015 : 20:40:04
|
quote: Originally posted by AnonJr
If I remember right, there is an upper limit to what IIS will accept using this mod's technique. I don't recall what it was, though I do know it should be more than enough for all but the most abusively large photos. I would suggest looking for that upper limit just so you don't try and set the size constraint higher than what IIS will allow.
The upper limit is set by a variable "MaxRequestLength".
For IIS 5/6, in the "web.config" file, you would use something like this (the amount is specified in KB, this gives a limit of 50 MB, timing out after 3600 seconds - 1 hour):
<system.web>
<httpRuntime maxRequestLength="51200" executionTimeout="3600" />
</system.web>
For IIS 7 and later, in the "web.config" file, change it to this (notice the larger value, it's because they switched to Bytes vs KB):
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
</security>
</system.webServer>
|
|
|
shaggy073077
Starting Member
29 Posts |
Posted - 30 October 2015 : 03:17:45
|
Ok guys this is my code can someone please fix this the file size for me? I have tried modding it like what you guys said but it doesn't work. So here goes: This is outputfile.asp
|
Edited by - AnonJr on 30 October 2015 13:26:17 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 30 October 2015 : 04:21:52
|
quote: Originally posted by shaggy073077
Ok guys this is my code can someone please fix this the file size for me? I have tried modding it like what you guys said but it doesn't work. So here goes: This is outputfile.asp
The file needing to be edited is "web.config" from the root directory of your web site. |
|
|
shaggy073077
Starting Member
29 Posts |
Posted - 31 October 2015 : 09:41:56
|
Carefree I don't use IIS I use Apache. So now what? |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 31 October 2015 : 10:32:28
|
See this page. |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 14 January 2016 : 11:42:33
|
quote: Originally posted by richfed
Suddenly, it has been reported that file attachments are rejecting pictures [proper format]:
Getting this:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
/messageboard/outputFile.asp, line 13
I tried myself ... it will not take a photo over 90KB. I have never had it set so small. How in the world do I make that size bigger? It's been so long since I set up that MOD, I can no longer recall.
Thanks!
Suddenly getting this error again. I did as you said last year, Carefree, and all was working. I was just trying to upload a .jpg of 344 KB and the message appeared again.
Here's what my host said [don't know where she got the notion of my upload being OVER 2MB from], but it still doesn't work.
quote: We investigated first issue and findings are as follows:
Error: Request object error 'ASP 0104 : 80004005' Operation not Allowed Reason: IIS6.0 prevents the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first. Which I have changed yesterday. Then on further investigation we found that you have defined Maximum File size in /messageboard/outputFile.asp and the ine is as follows :
If allowFile and byteCount <= 2097152 Then '##Maximum File size which is set to 2MB max size. And it seems that you are uploading file of more than 2 MB.
Now, I have increased Maximum File size to 20 MB as follows: If allowFile and byteCount <= 20971520 Then '##Maximum File size
So, for the moment, I am stuck. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
richfed
Average Member
United States
999 Posts |
|
Topic |
|