RadEditor - Upload not working

5 posts, 1 answers
  1. Roger Hynne
    Roger Hynne avatar
    7 posts
    Member since:
    Oct 2009

    Posted 09 Nov 2015 Link to this post

    Hello,

     RadEditor is not validating the max file upload size while uploading an image. File size is defined in the web.config 

    <httpRuntime requestValidationMode="2.0" maxRequestLength="200" executionTimeout="300" />
     

     Here is the code how an editor is added to the page

    <telerik:RadEditor ID="EditorrrTesstt" runat="server" ImageManager-ViewPaths="~/files" ImageManager-UploadPaths="~/files" ImageManager-DeletePaths="~/files"></telerik:RadEditor>

     

    I am adding the images to show the execution. It is a very simple page with just one editor instance.

    Problem: A rad window is shown with nothing after i click the upload button!!

     

     

     

     

     

     

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 10 Nov 2015 Link to this post

    Hi Roger,

    With the MaxRequestLength property you control the length of the request size, which is not directly related to the file upload mechanism of FileExplorer. Also, exactly this setting might lead to the shown issue. 

    In order to configure the maximum size of a file, you should use the MaxUploadFileSize property. As suggested here—http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/file-browser-dialogs/images.

    Regards,
    Ianko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roger Hynne
    Roger Hynne avatar
    7 posts
    Member since:
    Oct 2009

    Posted 10 Nov 2015 in reply to Ianko Link to this post

    Hi,

    Your reply helped to understand the issue. After increasing the request size the problem has been fixed partially.

    The problem is that, the image uploader is not validating the size of the file on client side! We get need to post back the form before the file size is validated. 

    I have tried the Editor Demo​ and it is validating the file size on client side as soon a file is chosen for upload.

    We are using the version 2014.2.724.40

     

  5. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 10 Nov 2015 Link to this post

    Hi Roger,

    Try if setting EnableAsyncUpload property to true helps in this situation. 

    If that does not help you, I strongly suggest upgrading the Telerik UI for ASP.NET AJAX suite with more recent version to get all improvements regarding this functionality. 

    Regards,
    Ianko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  6. Roger Hynne
    Roger Hynne avatar
    7 posts
    Member since:
    Oct 2009

    Posted 12 Nov 2015 Link to this post

    Thank you so much, setting the property EnableAsyncUpload fixed the problem. 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017