type
UploadInput
type UploadInput struct {
// Filename is the original client-supplied file name.
Filename string
// Reader provides the uploaded bytes.
Reader io.Reader
// Data contains application-owned upload document fields.
Data store.Values
// Actor is the authenticated document used by access rules.
Actor *store.Document
// ActorCollection identifies the exact auth collection that owns Actor.
ActorCollection schema.CollectionSlug
// Locale selects the content locale for application-owned upload metadata.
Locale LocaleOptions
}File bytes and application-owned metadata for one upload.
Filenamestring- Original client-supplied file name.
Readerio.Reader- Stream providing the uploaded bytes.
Datastore.Values- Application-owned fields for the upload document.
Actor*store.Document- Authenticated actor evaluated by access rules.
ActorCollectionschema.CollectionSlug- Exact auth collection that owns Actor.
LocaleLocaleOptions- Content locale for application-owned upload metadata.
Bytes, metadata, access, validation, hooks, storage, and document persistence run through one upload operation. The caller retains ownership of Reader.