type
UpdateUploadInput
Atomic upload replacement, image edit, document data, and publishing input.
Properties
| Property | Type | Description |
|---|---|---|
Filename | string | Renames the upload while retaining its current bytes when Reader is nil. |
Reader | io.Reader | Supplies replacement bytes; nil retains the existing file. |
Image | *UploadImageEdit | Applies image focal-point or crop changes; nil retains the saved transformation. |
Data | store.Values | Updates ordinary upload document fields in the same operation. |
ExpectedRevision | int | Rejects changes based on a stale document revision. |
Publish | bool | Publishes the resulting version when the collection supports drafts. |
Draft | *bool | Draft:true saves working changes without replacing live content. Use Publish for publication; Draft:true cannot be combined with it. |
Actor | *store.Document | Authenticated document used by read and update access rules. |
ActorCollection | schema.CollectionSlug | Identifies the exact auth collection owning Actor. |
Locale | LocaleOptions | Scopes localized document fields for the update. |
Full signature
type UpdateUploadInput struct {
Filename string
Reader io.Reader
Image *UploadImageEdit
Data store.Values
ExpectedRevision int
Publish bool
// Draft:true saves working changes without replacing live content.
// Use Publish for publication; Draft:true cannot be combined with it.
Draft *bool
Actor *store.Document
ActorCollection schema.CollectionSlug
Locale LocaleOptions
}