method

App.OpenUploadSourceForIdentity

OpenUploadSourceForIdentity reads the immutable source for an authenticated editor. Public upload delivery deliberately does not resolve source keys.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
idstringThe id value.
identity*AuthIdentityThe identity value.

Returns

The declared result.

(io.ReadCloser, storage.Object, error)

Full signature

func (application *App) OpenUploadSourceForIdentity( ctx context.Context, collection, id string, identity *AuthIdentity, ) (io.ReadCloser, storage.Object, error)

Source core/uploads.go:360

Related types

  • App

    A resolved application bound to operation services.

  • AuthIdentity

    An exact authenticated collection and actor document.

  • Object

    Object identity and authoritative content metadata.