How do I change the maximum Upload File Size for the Document Manager in a Telerik RAD Controls RADEditor/WYSIWYG control?
-
02-07-2019 - |
Question
I'm using the Telerik RAD Controls RADEditor/WYSIWYG control as part of a Dynamic Data solution.
I would like to be able to upload files using the Document Manager of this control.
However, these files are larger than whatever the default setting is for maximum upload file size.
Can anyone point me in the right direction to fix this?
Thanks Yaakov Ellis, see your answer + the answer I linked through a comment for the solution.
Solution
The Telerik website has instructions here.
Short version: in Web.config set the maxRequestLength
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout= "3600" />
</system.web>
OTHER TIPS
This thread in combination with Yaakov Ellis's answer may help others.
However, I've found for my problem, putting the following code in the code-behind for the user control FieldTemplate (Dynamic Data) in combination th Yaakov Ellis's answer solved things.
RadEditor1.DocumentManager.MaxUploadFileSize = 4194304;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow