type
UpdateUploadInput
Public authoring and runtime contracts live in core. These aliases keep the root package as the ergonomic application-facing entry point.
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. |