Skip to content

@serenity-is/corelib / FileUploadConstraints

Interface: FileUploadConstraints

Defined in: src/ui/helpers/uploadhelper.tsx:385

Constraints for validating uploaded files.

Extended by

Properties

allowNonImage?

optional allowNonImage: boolean

Defined in: src/ui/helpers/uploadhelper.tsx:413

Whether non-image files are allowed.


maxHeight?

optional maxHeight: number

Defined in: src/ui/helpers/uploadhelper.tsx:401

The maximum image height.


maxSize?

optional maxSize: number

Defined in: src/ui/helpers/uploadhelper.tsx:409

The maximum file size in bytes.


maxWidth?

optional maxWidth: number

Defined in: src/ui/helpers/uploadhelper.tsx:393

The maximum image width.


minHeight?

optional minHeight: number

Defined in: src/ui/helpers/uploadhelper.tsx:397

The minimum image height.


minSize?

optional minSize: number

Defined in: src/ui/helpers/uploadhelper.tsx:405

The minimum file size in bytes.


minWidth?

optional minWidth: number

Defined in: src/ui/helpers/uploadhelper.tsx:389

The minimum image width.


originalNameProperty?

optional originalNameProperty: string

Defined in: src/ui/helpers/uploadhelper.tsx:417

The name of the property holding the original file name.