Given a file is selected using the fileselect component
And one or more of the restrictions bound to the control are violated
The error message that is displayed should be configurable
For example, if the maxFileSize restriction has been set to 20mb and a file larger than that is selected, the control currently displays some error text to the user as follows: "File size too large". It would be beneficial if we could override this message so it (for example) could say "File size too large. The maximum file size is 20mb".
Hi Richard,
Thank you for your query.
To edit the built-in default messages in the Kendo UI for Angular FileSelect Component you should insert an additional <kendo-fileselect-messages></kendo-fileselect-messages> tag inside the main tag of the component and specify the exact message property you would like to change. You can see a full list of the built-in message properties here.
Please review the below code example for a runnable implementation of your query:
https://stackblitz.com/edit/angular-zmws9k
I hope this helps.
Regards,
Veselin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.