RadEditor file size

2 posts, 0 answers
  1. Kevin Donahue
    Kevin Donahue avatar
    33 posts
    Member since:
    Oct 2009

    Posted 14 Nov 2011 Link to this post

    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">
        <MediaManager MaxUploadFileSize="10240000" />
        <ImageManager MaxUploadFileSize="10240000" />

    Nothing I do seems to be working.  It always says max size is 200K.  Any ideas?
  2. Rumen
    Rumen avatar
    14466 posts

    Posted 14 Nov 2011 Link to this post

    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">
          <MediaManager MaxUploadFileSize="10240000" />
          <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" MaxUploadFileSize="10240000" />

    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,
    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
Back to Top