method

App.OpenUploadWithGrant

OpenUploadWithGrant streams one object authorized by a delivery grant. The grant's session and owner are reloaded, and the object is opened through the same collection read access as cookie delivery.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
keystringThe key value.
grantstringThe grant value.

Returns

The declared result.

(io.ReadCloser, storage.Object, error)

Full signature

func (application *App) OpenUploadWithGrant( ctx context.Context, collection, key, grant string, ) (io.ReadCloser, storage.Object, error)

Source core/upload_grants.go:124

Related types

  • App

    A resolved application bound to operation services.

  • Object

    Object identity and authoritative content metadata.