Single file upload with ControlValueAccessor
disabled
file name: {{ control.value?.file?.name }}
Размер файла не должен быть более 5 МБ
@if (control.hasError('maxFileSize')) {
Слишком большой размер файла
}
Single file upload with ControlValueAccessor & Form
Validation after submit
Single file upload
with pdf/png files accepted, validation outside
{{ hintMessage }}
@for (error of errorMessagesForSingle; track error) {
{{ error }}
}
Multiple file upload, no validation
{{ hintMessage }}
Multiple file with custom text
{{ hintMessage }}
Multiple file-upload, default UX validation
@for (error of errorMessages; track error) {
{{ error }}
}
Multiple file-upload, default UX validation with Reactive Forms
@for (control of this.fileList.controls; track $index) {
@if (control.hasError('maxFileSize')) {
{{ control.value?.file?.name }} - maxFileSize
}
}
Multiple file with ControlValueAccessor, overall hint error
@if (multipleFileUploadControl.hasError('maxFileSize')) {
Размер одного из файлов превысил лимит
}
Multiple file upload with Reactive Forms
Validation after submit
Multiple file upload compact