Client validation problems in the ImageManager on RadEditor

2 posts, 0 answers
  1. Gianni
    Gianni avatar
    1 posts
    Member since:
    Aug 2014

    Posted 19 Aug 2014 Link to this post

    Hi,

    I have a problem that you can find also in this demo

    http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx 

    Scenario A)

    I click on the ImageManager button-->Upload-->Select, I select a file a zip file of 50KB and I receive this message:
    ################################################################################
    #Demo.zip                                                                                                                                                               #
    #                                                                                                                                                                                #
    #The size of the uploaded file exceed max size allowed-------------------------------------------------------------------#-->Not true
    #The extension of the uploaded file is not valid. Please, provide a valid file!----------------------------------------#-->True (I should see only this message)
    ################################################################################

    Scenario B)

    I click on the ImageManager button-->Upload-->Select, I select a file a gif file of 300KB and I receive the same message:
    ################################################################################
    #Demo.gif                                                                                                                                                                #
    #                                                                                                                                                                                #
    #The size of the uploaded file exceed max size allowed-------------------------------------------------------------------#-->True (I should see only this message)
    #The extension of the uploaded file is not valid. Please, provide a valid file!----------------------------------------#-->Not True 
    ################################################################################

    I saw I can set the EnableAsyncUpload property to "false" and in this way the validation of the extension and the format is done on the server and I get the only correct message, but I want to avoid the validation on the server side... I want to validate the format and the size before to send the file to the server.

    How can I solve it ?

    Thanks,
     Gianni,
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 21 Aug 2014 Link to this post

    Hi Gianni,

    I am logging this improvement here: http://feedback.telerik.com/Project/108/Feedback/Details/136245. This needs to be implemented in the RadFileExplorer control first before it can affect the RadEditor. If this item gets enough public interest we will consider its implementation. For the time being you can cast your vote, leave a comment and follow its progress. I have also updated your Telerik points for your suggestion.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top