mirror of
https://github.com/dataforcanada/d4c-infra-distribution.git
synced 2026-06-13 22:20:55 +02:00
Got it working. Will start running it tomorrow early in the morning, going to chill
This commit is contained in:
@@ -16,10 +16,13 @@ Client POST ──▶ Worker ──stream──▶ S3 PutObject / Multipart
|
||||
|
||||
**Two upload paths are used automatically:**
|
||||
|
||||
| Source provides `Content-Length`? | Upload method | Memory overhead |
|
||||
| Condition | Upload method | Memory overhead |
|
||||
|---|---|---|
|
||||
| Yes | Single streaming `PUT` | ~0 (pipe-through) |
|
||||
| No | Multipart upload in 5 MiB chunks | ≤ 5 MiB |
|
||||
| Known size ≤ 100 MiB | Single streaming `PUT` | ~0 (pipe-through) |
|
||||
| Unknown size **or** > 100 MiB | Multipart upload in 5 MiB chunks | ≤ 5 MiB |
|
||||
|
||||
> Files larger than 100 MiB always use multipart upload because Cloudflare
|
||||
> Workers enforce a body-size limit on single outbound `fetch()` requests.
|
||||
|
||||
## Setup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user