basalt / files/src / FileUploadRouteOptions
Interface: FileUploadRouteOptions
Defined in: files/src/plugin.ts:167
Limits for the opt-in POST /files upload route.
Properties
allowedTypes?
> optional allowedTypes?: readonly string[]
Defined in: files/src/plugin.ts:177
Declared file types accepted at the edge — exact (image/png) or a wildcard subtype (image/*). Default: any. This is the client's claim; filesPlugin({ validate: { sniff: true } }) is what checks the bytes.
maxBytes
> maxBytes: number
Defined in: files/src/plugin.ts:169
Most bytes one request may carry, multipart framing included. Over it: 413.
maxFiles?
> optional maxFiles?: number
Defined in: files/src/plugin.ts:171
Most files accepted per request. Default 1. One more: 400 TOO_MANY_FILES.