method
App.OpenUploadWithGrant
OpenUploadWithGrant streams one object authorized by a delivery grant. The grant's session and owner are reloaded, and the object is opened through the same collection read access as cookie delivery.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
key | string | The key value. |
grant | string | The grant value. |
Returns
The declared result.
(io.ReadCloser, storage.Object, error)Full signature
func (application *App) OpenUploadWithGrant(
ctx context.Context,
collection,
key,
grant string,
) (io.ReadCloser, storage.Object, error)