method
App.UploadFromURLForIdentity
Fetch and store a remote file for one exact authenticated identity.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
input | RemoteUploadInput | The input value. |
identity | *AuthIdentity | The 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)Related types
AppA resolved application bound to operation services.
RemoteUploadInputA public HTTP(S) asset and upload metadata.
AuthIdentityAn exact authenticated collection and actor document.
DocumentA stored document with status and version metadata.