method

App.UploadForIdentity

Store a file for one exact authenticated collection identity.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
inputUploadInputThe input value.
identity*AuthIdentityThe identity value.

Returns

The declared result.

(store.Document, error)

Full signature

func (application *App) UploadForIdentity( ctx context.Context, collection string, input UploadInput, identity *AuthIdentity, ) (store.Document, error)

Source core/uploads.go:174

Related types

  • App

    A resolved application bound to operation services.

  • UploadInput

    File bytes and application-owned metadata for one upload.

  • AuthIdentity

    An exact authenticated collection and actor document.

  • Document

    A stored document with status and version metadata.