I have an issue setting the max file size allowed, the editor doesn't seem to be listening to my settings.
I followed this sample: http://www.telerik.com/help/aspnet/editor/uploadinglargefilesusingeditor.html
But when I try to upload a file the Max file size allowed: 200.00 KB is still there and I get an error saying the file size is bigger than the allowed size.
My web.config has the following as I need files upto 11mb
<
httpRuntime maxRequestLength="11000" executionTimeout="3600" />
My editor settings are as follows.
<
telerik:RadEditor ID="RadEditor1" MaxDocumentSize="11000000" Runat="server" >
<
Content>
</
Content>
<
Languages>
<telerik:SpellCheckerLanguage Code="en-US" Title="English" />
</
Languages>
</
telerik:RadEditor>
Please have you any idea why the editor isn't allowing the upload I have a deadline COB today that I need to meet and the client can't upload large files to the system.
Cheers
Mal
6 Answers, 1 is accepted
Basically I've created a Custom Content provider for my editor in order to make sure my links are following our system protocols. It looks to me that when I set the editor.documentmanager to my custom one it doesn't use the property MaxFile etc...
To fix it I set the MaxUploadFileSize in code after I map the document manager to my new class, as follows.
RadEditor1.DocumentManager.ContentProviderTypeName =
GetType(Backend.EditorCustomContentProvider).AssemblyQualifiedName
RadEditor1.DocumentManager.MaxUploadFileSize = "11000000"
Obviously to clean up I'll put that value in the web.config, and I've bolded the relevant line of code which fixed the issue.
The RadEditor for ASP.NET AJAX does not have a property MaxDocumentSize - this is only used in the classic RadEditor control. As you already found out, you need to use the DocumentManager.MaxUploadFileSize property to set the maximum allowed file size. You can also set it in the control declaration as follows:
<telerik:RadEditor ID="RadEditor1" runat="server"> |
<DocumentManager MaxUploadFileSize="11000000" /> |
<Content> </Content> |
<Languages> |
<telerik:SpellCheckerLanguage Code="en-US" Title="English" /> |
</Languages> |
</telerik:RadEditor> |
or directly in the editor tag:
<telerik:RadEditor ID="RadEditor1" runat="server" DocumentManager-MaxUploadFileSize="11000000"> |
<Content> </Content> |
<Languages> |
<telerik:SpellCheckerLanguage Code="en-US" Title="English" /> |
</Languages> |
</telerik:RadEditor> |
Sincerely yours,
Lini
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
For the MOSS RadEditor, you can set the max upload size using the editor's configuration file - ConfigFile.xml or ListConfigFile.xml. See our help for more details - http://www.telerik.com/help/aspnet-ajax/set-properties-via-config-file.html. The specific property you need to set (e.g. MaxImageSize for images) is available in the dialogs documentation for MOSS - http://www.telerik.com/help/aspnet-ajax/image_manager.html
Regards,
Lini
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Posted 0 minutes ago (permalink)
Thanks for you help.
we've fixed the issue. we simply needed to modify the
<property name="MaxMediaSize">51200000</property> |
<property name="MaxFlashSize">51200000</property> |
in the listconfigfile.xml and configfile.xml in the resource folder.
On a side note, I think it's silly that such properties are removed from the config files. Wouldn't it better to have all the properties listed in the config files, and commented out, so that users wouldn't have to go digging around the internet to figure out what the property names are?.
Also on another note, even though we were able to successfully increase the upload size , We still can't use the media manager and flash manager in SharePoint lists, because sharepoint erases anything with an "<object>" tag. Very disappointing. I hope Telerik is working with microsoft on a fix for this. i've seen posts such as http://erte.codeplex.com/ that suggest this is a deffinite possibility.
thanks
Charles
We are glad that you have managed to resolve the issue. About your comment - unfortunately the new version of SharePoint (SP 2010) also does not allow the user to insert media (movies, flash) into list content. The restriction applies both to the rich text and enhanced rich text column types in lists. The good news is that the new version supports flash in some scenarios where MOSS 2007 did not - e.g. Wiki pages.
Best wishes,
Lini
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.