This is a migrated thread and some comments may be shown as answers.

Max file size allowed: Urgent

6 Answers 257 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mal
Top achievements
Rank 1
Mal asked on 29 Jun 2009, 03:31 AM
Hi guys,
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

Sort by
0
Mal
Top achievements
Rank 1
answered on 29 Jun 2009, 03:59 AM
I know this is silly replying to my own thread but I've solved it and thought that I might be able to help someone else.

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.

0
Accepted
Lini
Telerik team
answered on 02 Jul 2009, 10:21 AM
Hi,

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.
0
Charles Faramarzi-rad
Top achievements
Rank 1
answered on 09 Jun 2010, 05:28 PM
HI Telerik;
How can we perform the same task for a moss Rad Editor.

thanks
Charles
0
Lini
Telerik team
answered on 10 Jun 2010, 07:48 AM
Hello Charles,

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.
0
Charles Faramarzi-rad
Top achievements
Rank 1
answered on 10 Jun 2010, 05:20 PM

Posted 0 minutes ago (permalink)

Hi;
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

0
Lini
Telerik team
answered on 14 Jun 2010, 01:39 PM
Hi 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.
Tags
Editor
Asked by
Mal
Top achievements
Rank 1
Answers by
Mal
Top achievements
Rank 1
Lini
Telerik team
Charles Faramarzi-rad
Top achievements
Rank 1
Share this question
or