Change Upload error message for unsupported extension

2 posts, 0 answers
  1. Justin
    Justin avatar
    5 posts
    Member since:
    Feb 2015

    Posted 01 Nov Link to this post

    I see the following error message popup when trying to upload a file that is not a supported type:

    "The size of the uploaded file exceeds max size allowed

    The extension of the uploaded file is not valid. Please, provide a valid file!"

     

    We find this text confusing and would like to change it. Is there a way to change this text?

  2. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 02 Nov Link to this post

    Hello,

    The RadFileExplorer control uses the same localization mechanism as RadEditor (.resx files in the App_GlobalResources folder). If you want to change the localization strings, you need to copy the RadEditor.Dialogs.resx file in the App_GlobalResources folder of your application and edit the strings inside.

    ASPX
    <telerik:RadFileExplorer ID="FileExplorer1" runat="server" Language="en-US">
        <Configuration ViewPaths="~/" UploadPaths="~/" />
    </telerik:RadFileExplorer>

    RadEditor.Dialogs.resx
    Change the strings inside the values of these name attributes:
    Common_InvalidFileExtension
    Common_InvalidFileSize


    Best regards,
    Rumen
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top