method

App.UploadFromURLForIdentity

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

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

Source core/uploads.go:248

@param ctx
The ctx value.
@param collection
The collection value.
@param input
The input value.
@param identity
The identity value.
@returns
The declared result.

Identity is rechecked before networking begins.

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.