Implement Cloudflare Stream direct creator uploads without exposing an API token to end users

domain: developers.cloudflare.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Server-side, call the Direct Upload API to generate a unique, one-time upload URL
  2. Optionally set a creator field (an internal user ID) at request time so uploaded videos can later be filtered/searched by creator
  3. Return the one-time uploadURL to the client and have the client POST the video file directly to it
  4. For files at or under Cloudflare's basic POST limit, use the simple POST approach; use the tus protocol instead for larger files
  5. Poll the get-video-details endpoint by uid, or subscribe to a webhook, to know when the upload has finished processing

Known gotchas

Related routes

Configure Cloudflare Stream signed URL tokens with per-viewer accessRules (IP and country) and a downloadable flag for token-gated playback
developers.cloudflare.com · 6 steps · unrated
Do signed direct-to-Cloudinary uploads from the browser
cloudinary.com · 4 steps · unrated
Configure Cloudflare Stream signed URLs for private video playback
developers.cloudflare.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans