Skip to main content
zerotal

Documentation


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?

optional maxSize?: number

Defined in: http/UploadedFile.ts:22

Maximum allowed size in bytes.


mimes?

optional mimes?: string[]

Defined in: http/UploadedFile.ts:24

Allowed MIME types — e.g. ['image/jpeg', 'image/png', 'application/pdf'].