cloudflare · Cloudflare Workers Docs
Workers Direct Uploads
A multi-step workflow for programmatically uploading and deploying static assets to Cloudflare Workers using the Workers API, involving manifest registration, file uploading, and script version deployment.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Direct Uploads
A multi-step workflow for programmatically uploading and deploying static assets to Cloudflare Workers using the Workers API, involving manifest registration, file uploading, and script version deployment.
When To Use
Use when you need to build a programmatic integration to automate the uploading and deployment of static assets to a Worker via API instead of using the Wrangler CLI.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-static-assets-direct-upload-uploads-workflow-guide.md | A guide explaining how to programmatically upload static assets to Cloudflare Workers using APIs. | Questions about a guide explaining how to programmatically upload static assets to Cloudflare Workers using APIs. |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-assets-up.text | A curl command demonstrating how to initiate a Workers static assets upload session via the Cloudflare API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to initiate a Workers static assets upload session via the Cloudflare API. |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as.text | A curl command demonstrating how to initiate an assets upload session via the Cloudflare Workers API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to initiate an assets upload session via the Cloudflare Workers API. |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-direct-up.text | A JSON object representing the successful response from a Cloudflare Workers direct upload operation containing JWT and bucket information. | Exact payloads, commands, or snippets shown in A JSON object representing the successful response from a Cloudflare Workers direct upload operation containing JWT a... |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-2.text | A wrangler.toml configuration file defining the main module and static assets settings for Workers direct uploads. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining the main module and static assets settings for Workers direct uploads. |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-3.text | A wrangler.toml configuration file demonstrating the main module and asset retention settings for Workers direct uploads. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the main module and asset retention settings for Workers direct uplo... |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-4.text | A wrangler.toml configuration file demonstrating the setup for Workers static assets direct uploads. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the setup for Workers static assets direct uploads. |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-5.text | A configuration object defining the main module, asset bindings, and compatibility date for Workers static assets direct uploads. | Exact payloads, commands, or snippets shown in A configuration object defining the main module, asset bindings, and compatibility date for Workers static assets dir... |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-6.text | A shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers direct upload method. | Exact payloads, commands, or snippets shown in A shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers dir... |
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-7.text | A shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers direct upload method. | Exact payloads, commands, or snippets shown in A shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers dir... |
What This Skill Covers
- Directly uploading assets via APIs is an advanced approach which, unless you are building a programmatic integration, most users will not need. Instead, we e...
- Main sections:
Upload manifest,Limitations,Upload Static Assets,Create/Deploy New Version,Programmatic Example.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/static-assets/direct-upload
