type

UploadConfig

type UploadConfig struct { // MaxFileSize is the maximum accepted upload size in bytes. Zero uses the // framework default; values above 256 MiB are rejected so one request cannot // bypass the process-wide upload work budget. MaxFileSize int64 // MimeTypes restricts uploads to the listed media types. Empty accepts any supported type. MimeTypes []string // Private requires authorized delivery instead of exposing storage objects publicly. Private bool // ImageSizes declares derived image variants generated from supported image uploads. ImageSizes []ImageSize }

Validation and object-storage behavior for an upload collection.

Source core/config.go:343

MaxFileSizeint64
Accepted byte limit; zero uses the framework default and values above 256 MiB are rejected.
MimeTypes[]string
Allowed media types; empty accepts any supported type.
Privatebool
Requires authorized delivery instead of public object URLs.
ImageSizes[]ImageSize
Derived variants generated for supported image uploads.