download_url_to_bucket
Server-side copy of a public URL into a bucket (no transcoding).
The server fetches `source_url` itself and streams the bytes straight into
the bucket via a short-lived presigned upload — use this to ingest an
existing asset into Qencode Media Storage as-is. To store a *transcoded*
result instead, set a `destination` on a transcoding job.
IMPORTANT — this call is synchronous and blocking: it returns only after the
whole file has been fetched and uploaded, and there is no job token or
progress to poll (unlike transcoding). The transfer must finish inside the
presigned upload window (~10 minutes) and is size-capped server-side, so it
suits small/medium assets; very large or slow sources may time out — upload
those out-of-band instead.
Args:
source_url: a publicly reachable `http(s)` URL the server can fetch
directly. Non-http(s) schemes and private/loopback hosts are
rejected up front; a source that responds with a redirect or a
4xx/5xx fails the transfer.
bucket: destination bucket name.
key: destination object key (e.g. `raw/input.mov`). An existing object
at this key is overwritten.
Returns `{bucket, key, size_bytes, status: "uploaded"}`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bucket | Yes | ||
| source_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bucket | Yes | ||
| status | Yes | ||
| size_bytes | Yes |