method
App.PreviewUploadForIdentity
PreviewUploadForIdentity downloads a bounded, SSRF-checked remote file without creating a document. Closing the reader releases its file-memory reservation.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
id | string | The id value. |
remoteURL | string | The remoteURL value. |
identity | *AuthIdentity | The 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)Related types
AppA resolved application bound to operation services.
AuthIdentityAn exact authenticated collection and actor document.
ObjectObject identity and authoritative content metadata.