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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.