type

UploadConfig

Validation, privacy, and image-variant policy for an upload collection.

Source ridu.go:134

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.

Upload collections also require Config.Storage, a stable StorageNamespace, and a store implementing UploadObjectLocker. Image variants are generated only for supported images.