Skip to content

MimeGroup

MimeGroup = object

Defined in: packages/storage/src/types.ts:38

A group of MIME types sharing a single size limit, used by the per-mime form of filetype. Each group independently enforces its maxSize so you can allow (for example) 10 MB images and 50 MB PDFs in the same filetype without raising the ceiling for images to 50 MB.

maxSize: string

Defined in: packages/storage/src/types.ts:42

Maximum file size for this group as a human-readable string (e.g. "10mb").


mimes: readonly string[]

Defined in: packages/storage/src/types.ts:40

MIME types belonging to this group (e.g. ["image/jpeg", "image/png"]).