method

App.UpdateUpload

Commit replacement bytes, image edits, and document fields as one upload update.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
idstringThe id value.
inputUpdateUploadInputThe input value.

Returns

The declared result.

(store.Document, error)

How it works

Coordinates storage preparation, optimistic revision, update and publish access, and rollback.

Full signature

func (application *App) UpdateUpload( ctx context.Context, collection, id string, input UpdateUploadInput, ) (store.Document, error)

Source core/uploads.go:272

Related types

  • App

    A resolved application bound to operation services.

  • UpdateUploadInput

    Atomic upload replacement, image edit, document data, and publishing input.

  • Document

    A stored document with status and version metadata.