@serenity-is/corelib / FileUploadConstraints
Interface: FileUploadConstraints
Defined in: src/ui/helpers/uploadhelper.tsx:385
Constraints for validating uploaded files.
Extended by
Properties
allowNonImage?
optionalallowNonImage:boolean
Defined in: src/ui/helpers/uploadhelper.tsx:413
Whether non-image files are allowed.
maxHeight?
optionalmaxHeight:number
Defined in: src/ui/helpers/uploadhelper.tsx:401
The maximum image height.
maxSize?
optionalmaxSize:number
Defined in: src/ui/helpers/uploadhelper.tsx:409
The maximum file size in bytes.
maxWidth?
optionalmaxWidth:number
Defined in: src/ui/helpers/uploadhelper.tsx:393
The maximum image width.
minHeight?
optionalminHeight:number
Defined in: src/ui/helpers/uploadhelper.tsx:397
The minimum image height.
minSize?
optionalminSize:number
Defined in: src/ui/helpers/uploadhelper.tsx:405
The minimum file size in bytes.
minWidth?
optionalminWidth:number
Defined in: src/ui/helpers/uploadhelper.tsx:389
The minimum image width.
originalNameProperty?
optionaloriginalNameProperty:string
Defined in: src/ui/helpers/uploadhelper.tsx:417
The name of the property holding the original file name.