Based on selection of file type conditional validation is applied
{{userInfoFormGroup.controls.fileType.errors.fileSize.message}}
{{userInfoFormGroup.controls.videoFile.errors.fileSize.message}}
{{userInfoFormGroup.controls.audioFile.errors.fileSize.message}}
If you want to apply conditional validation on 'Image File' then you need to add 'File Type' input as 'Picture'.
{{userInfoFormGroup.controls.imageFile.errors.fileSize.message}}
If you want to apply conditional validation on 'Document File' then you need to add 'File Type' input as 'Document'.
{{userInfoFormGroup.controls.documentFile.errors.fileSize.message}}
Uploaded File must be in the file size range.
It shows custom message
{{userInfoFormGroup.controls.contactFile.errors.fileSize.message}}
{{userInfoFormGroup.controls.profilePicture.errors.fileSize.message}}