Skip to content

@serenity-is/corelib / FileUploadConstraints

Interface: FileUploadConstraints

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

Constraints for validating uploaded files.

Extended by

Properties

allowNonImage?

optional allowNonImage: boolean

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

Whether non-image files are allowed.


maxHeight?

optional maxHeight: number

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

The maximum image height.


maxSize?

optional maxSize: number

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

The maximum file size in bytes.


maxWidth?

optional maxWidth: number

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

The maximum image width.


minHeight?

optional minHeight: number

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

The minimum image height.


minSize?

optional minSize: number

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

The minimum file size in bytes.


minWidth?

optional minWidth: number

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

The minimum image width.


originalNameProperty?

optional originalNameProperty: string

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

The name of the property holding the original file name.