method

App.PreviewUploadForIdentity

PreviewUploadForIdentity downloads a bounded, SSRF-checked remote file without creating a document. Closing the reader releases its file-memory reservation.

Arguments

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

Returns

The declared result.

(io.ReadCloser, storage.Object, string, error)

Full signature

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

Source core/uploads.go:860

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.