method

App.UploadFromURLForIdentity

Fetch and store a remote file for one exact authenticated identity.

Arguments

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

Returns

The declared result.

(store.Document, error)

How it works

Identity is rechecked before networking begins.

Full signature

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

Source core/uploads.go:260

Related types

  • App

    A resolved application bound to operation services.

  • RemoteUploadInput

    A public HTTP(S) asset and upload metadata.

  • AuthIdentity

    An exact authenticated collection and actor document.

  • Document

    A stored document with status and version metadata.