Skip to main content
cngx-src documentation

FileRejection

Interface

projects/forms/input/file-drop.directive.ts

Referenced by#

Import#

import { FileRejection } from '@cngx/forms/input'

Description#

Describes a file that was rejected during drop/browse validation.

Index#

Properties

Instance Properties#

file#File
Readonly

The rejected file.

reason#"type" | "size" | "count"
Readonly

Why the file was rejected: MIME type mismatch ('type'), exceeds maxSize ('size'), or over the maxFiles count cap ('count').