Skip to main content
zerotal

Documentation


Documentation / zerotal / http / FileValidationOptions

Interface: FileValidationOptions

Defined in: packages/core/src/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: packages/core/src/http/UploadedFile.ts:22

Maximum allowed size in bytes.


mimes?

optional mimes?: string[]

Defined in: packages/core/src/http/UploadedFile.ts:24

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