Developer forum

Forum » Templates » Forum v2

Reply
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é

Replies

 
Reply
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..".
 
Nicolai Høeg Pedersen
Reply
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

System.Web.Configuration.HttpRuntimeSection.MaxRequestLength which is 4096kb.

 
Reply
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é

 
Nicolai Høeg Pedersen
Reply
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.

 

You must be logged in to post in the forum