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

RadEditor file size

1 Answer 188 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kevin Donahue
Top achievements
Rank 1
Kevin Donahue asked on 14 Nov 2011, 01:01 PM
How do I change the max file size allowed by the image editor that is part of the RadEditor?
I tried setting ImageManager-MaxFileUploadSize attribute of the RadEditor itself.
I tried using the ImageManager inner node of the RadEditor:

<telerik:RadEditor ID="RadEditor1" Runat="server" Width="100px" Height="100px" 
EditModes="Design" EnableResize="False" EnableViewState="False" ImageManager-MaxUploadFileSize="1024000" 
ForeColor="Black" ContentAreaCssFile="~/Styles/RadEditor.css">
    <Tools>
     	...
    </Tools>
    <Content></Content>
    <MediaManager MaxUploadFileSize="10240000" />
    <ImageManager MaxUploadFileSize="10240000" />
</telerik:RadEditor>


Nothing I do seems to be working.  It always says max size is 200K.  Any ideas?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Nov 2011, 02:05 PM
Hi Kevin,

Yes, the property that you need to set is MaxUploadFileSize. I tested the provided declaration and it changed the allowed max upload file size. The only things that I added were the ViewPaths and UploadPaths properties as well:

<telerik:RadEditor ID="RadEditor1" runat="server" Width="100px" Height="100px" EditModes="Design"
      EnableResize="False" EnableViewState="False" ImageManager-MaxUploadFileSize="1024000"
      ForeColor="Black" ContentAreaCssFile="~/Styles/RadEditor.css">
      <Content></Content>
      <MediaManager MaxUploadFileSize="10240000" />
      <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" MaxUploadFileSize="10240000" />
  </telerik:RadEditor>

For your convenience I have attached my test project. You can compare my project with yours and find the difference which is causing the problem.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Kevin Donahue
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or