Skip to main content

UploadLimits

@forge/monorepo


@forge/monorepo / backend/src / UploadLimits

Type Alias: UploadLimits

UploadLimits = object

Defined in: backend/src/files/index.ts:32

What a deployment will accept.

Configuration rather than constants, because the ceiling belongs to the storage bucket. ShareFlow's MEDIA_MAX_BYTES is 50 MB precisely because that is its bucket's file_size_limit — a limit here larger than the bucket's would refuse at upload time with the wrong number, and one smaller would refuse files the bucket would have taken.

Properties

allowedMediaTypes

readonly allowedMediaTypes: readonly string[]

Defined in: backend/src/files/index.ts:35

Exact media types. No wildcards: image/* is how an SVG becomes an accepted image.


maxBytes

readonly maxBytes: number

Defined in: backend/src/files/index.ts:33


signedUrlSeconds

readonly signedUrlSeconds: number

Defined in: backend/src/files/index.ts:37

How long a signed read URL lives. Short — see MAX_SIGNED_URL_SECONDS.