Documentation / @zerotal/core / http / FileValidationOptions
Interface: FileValidationOptions
Defined in: http/UploadedFile.ts:20
Rules for UploadedFile.isValid. Omit a field to skip that check; an empty options object only verifies that a non-empty file was received.
Properties
maxSize?
optionalmaxSize?:number
Defined in: http/UploadedFile.ts:22
Maximum allowed size in bytes.
mimes?
optionalmimes?:string[]
Defined in: http/UploadedFile.ts:24
Allowed MIME types — e.g. ['image/jpeg', 'image/png', 'application/pdf'].