Customizations

Validation messages can be customized using the following four options:

Property name Description Default value
invalidFileSizeMessageSummary Summary message of the invalid file size. The placeholder {0} refers to the file name. {0}: Invalid file size,
invalidFileSizeMessageDetail Detail message of the invalid file size. The placeholder {0} refers to the file size. maximum upload size is {0}.
invalidFileTypeMessageSummary Summary message of the invalid file type. The placeholder {0} refers to the file type. {0}: Invalid file type,
invalidFileTypeMessageDetail Detail message of the invalid file type. The placeholder {0} refers to the allowed file types. allowed file types: {0}

The next code snippet and screenshot ...

Get Angular UI Development with PrimeNG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.