Download fetches a file by uploaded hash.
(ctx context.Context, id uuid.UUID)
| 41 | |
| 42 | // Download fetches a file by uploaded hash. |
| 43 | func (c *Client) Download(ctx context.Context, id uuid.UUID) ([]byte, string, error) { |
| 44 | return c.DownloadWithFormat(ctx, id, "") |
| 45 | } |
| 46 | |
| 47 | // Download fetches a file by uploaded hash, but it forces format conversion. |
| 48 | func (c *Client) DownloadWithFormat(ctx context.Context, id uuid.UUID, format string) ([]byte, string, error) { |