Hi,
I have two questions about forum v2.
Q1: How do I extend the maximum attach-file size which is currently 200 KB?
The template UploadFile.html is using the tag <!--@ForumV2:Files.MaximumSize--> but where do I change the value of that tag?
Q2: If I reply to a message, how do I avoid the editor form containing the text of the previous message?
I know that this is possible, because that's how *this* forum works. But where do I configure it?
-
Regards,
René
Developer forum
E-mail notifications
Forum v2
Posted on 18/01/2010 09:05:25
Replies
Posted on 10/02/2010 14:47:51
Hi,
Let my answer my own questions with a little help from support.
Q1: How do I extend the maximum attach-file size which is currently 200 KB?
That is not possible! the value 200 KB is har hardcoded into the module. This is not nice, lets hope it is fixed in the next release of forum.
Q2: If I reply to a message, how do I avoid the editor form containing the text of the previous message?
Answer:
This can be changed in the tmplate "Template send answer". Just remove the text similar to "...wrote @Text..".
Let my answer my own questions with a little help from support.
Q1: How do I extend the maximum attach-file size which is currently 200 KB?
That is not possible! the value 200 KB is har hardcoded into the module. This is not nice, lets hope it is fixed in the next release of forum.
Q2: If I reply to a message, how do I avoid the editor form containing the text of the previous message?
Answer:
This can be changed in the tmplate "Template send answer". Just remove the text similar to "...wrote @Text..".
Nicolai Høeg Pedersen
Posted on 10/02/2010 14:58:21
Just checked the code - regarding Q1 - the forum module gets the max size from web.config:
<httpRuntime executionTimeout="180" maxRequestLength="204800"...
So you can change it in there...
If you delete that attribute, the upload size is equal to
<httpRuntime executionTimeout="180" maxRequestLength="204800"...
So you can change it in there...
If you delete that attribute, the upload size is equal to
System.Web.Configuration.HttpRuntimeSection.MaxRequestLength which is 4096kb.
Posted on 11/02/2010 11:07:19
Hi,
I just cheked our web.config file, it says:
<httpRuntime executionTimeout="180" maxRequestLength="204800" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" />
204800 is in KB and hence 200MB. The limit in Forum V2 is 200KB.
In other words, the Forum V2 limit is not directly based on the maxRequestLength.
-- René
I just cheked our web.config file, it says:
<httpRuntime executionTimeout="180" maxRequestLength="204800" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" />
204800 is in KB and hence 200MB. The limit in Forum V2 is 200KB.
In other words, the Forum V2 limit is not directly based on the maxRequestLength.
-- René
Nicolai Høeg Pedersen
Posted on 11/02/2010 13:37:21
Well - you just found the error...
In the code System.Web.HttpPostedFile.ContentLength() is compared to HttpRuntimeSection.MaxRequestLength
The first is in bytes, the other in KB...
Just comitted a fix which will hit the streets with the next service release.
In the code System.Web.HttpPostedFile.ContentLength() is compared to HttpRuntimeSection.MaxRequestLength
The first is in bytes, the other in KB...
Just comitted a fix which will hit the streets with the next service release.
You must be logged in to post in the forum