@serenity-is/corelib / FileUploadConstraints
Interface: FileUploadConstraints
Defined in: src/ui/helpers/uploadhelper.tsx:384
Constraints for validating uploaded files.
Extended by
Properties
allowNonImage?
optionalallowNonImage:boolean
Defined in: src/ui/helpers/uploadhelper.tsx:412
Whether non-image files are allowed.
maxHeight?
optionalmaxHeight:number
Defined in: src/ui/helpers/uploadhelper.tsx:400
The maximum image height.
maxSize?
optionalmaxSize:number
Defined in: src/ui/helpers/uploadhelper.tsx:408
The maximum file size in bytes.
maxWidth?
optionalmaxWidth:number
Defined in: src/ui/helpers/uploadhelper.tsx:392
The maximum image width.
minHeight?
optionalminHeight:number
Defined in: src/ui/helpers/uploadhelper.tsx:396
The minimum image height.
minSize?
optionalminSize:number
Defined in: src/ui/helpers/uploadhelper.tsx:404
The minimum file size in bytes.
minWidth?
optionalminWidth:number
Defined in: src/ui/helpers/uploadhelper.tsx:388
The minimum image width.
originalNameProperty?
optionaloriginalNameProperty:string
Defined in: src/ui/helpers/uploadhelper.tsx:416
The name of the property holding the original file name.