Skip to content

Commit b57966c

Browse files
[Workers] Add max upload size to limits.md + Fix toml in configuration.md (#1372)
* Add section on worker HTTP upload size limits. [Relevant issue](#1361) * Fix typos. * Fix toml example One example previously failed to parse, re-wrote it to comply with TOML 0.4 #1182 Tested; appears to work with wrangler. Have not tested LTS versions of wrangler if they exist. * Update products/workers/src/content/platform/limits.md * Update products/workers/src/content/platform/limits.md * Update products/workers/src/content/platform/limits.md Co-authored-by: Kate Tungusova <[email protected]>
1 parent ec40b71 commit b57966c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

products/workers/src/content/cli-wrangler/configuration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ Usage:
340340
```toml
341341
[build]
342342
command = "npm install && npm run build"
343+
343344
[build.upload]
344345
format = "service-worker"
345346
```
@@ -365,11 +366,11 @@ format = "service-worker"
365366
#### `[build.upload]`
366367

367368
<Definitions>
368-
369+
369370
- `format` <PropMeta>required</PropMeta>
370371

371372
- The format of the Worker script, must be "service-worker"
372-
373+
373374
</Definitions>
374375

375376
<Aside>

products/workers/src/content/platform/limits.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ pcx-content-type: concept
2222

2323
</TableWrap>
2424

25+
## Upload size limits
26+
27+
Cloudflare has network-wide limits on the body size of uploads (HTTP POST/PUT/PATCH requests) which depend on your Cloudflare plan (this is separate from your Workers plan). All uploads larger than your plan limit will be rejected with an HTTP 413 error code ("Request entity too large"). Cloudflare Enterprise customers can [contact Cloudflare support](https://support.cloudflare.com/hc/en-us/articles/200172476) to request a larger upload limit. Learn more about [Cloudflare plans](https://www.cloudflare.com/plans/).
28+
29+
<TableWrap>
30+
31+
| Cloudflare Plan | Maximum body size |
32+
| --------------- | ----------------- |
33+
| Free | 100MB |
34+
| Pro | 100MB |
35+
| Business | 200MB |
36+
| Enterprise | 500MB |
37+
38+
</TableWrap>
39+
2540
## Worker limits
2641

2742
<TableWrap>

0 commit comments

Comments
 (0)