{
  "slug": "cf-pages-direct-upload-accepts-file-parts-for-every-binary-multipart-field-c8dc2258a4fe",
  "title": "cf Pages Direct Upload accepts file parts for every binary multipart field",
  "tools": [
    "cf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-27T20:44:36.000Z",
  "announced_at": "2026-10-27T20:44:36.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For a Pages Direct Upload with an advanced-mode `_worker.js`, run `cf pages deployments create` with `--worker-js @./_worker.js` to upload it as a file part.",
    "examples": [
      "cf pages deployments create --worker-js @./_worker.js"
    ],
    "gotchas": [
      "Version: 1.0.0-beta.24",
      "--worker-js: Worker JavaScript file; accepts literal content or `@path/to/file`.",
      "Both literal content and `@path/to/file` forms upload as file parts.",
      "Inline content uses the original form field name as its filename.",
      "The uploaded file bytes and filenames are preserved."
    ]
  },
  "why_it_matters": "When creating a Pages Direct Upload that includes an advanced-mode `_worker.js`, pass the binary form fields as file parts.",
  "before": "`--file` only reached `_headers`; other files could not be sent.",
  "sources": [
    "https://github.com/cloudflare/cf/releases/tag/cf%401.0.0-beta.24"
  ],
  "rank": 0.97044,
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261028-04",
    "verdict_id": "daily-20261028-04:daily-20261028-04-7dab746f06eb298a-1:gate",
    "evidence_hash": "a87c4651b289847f7bc5c8eececdc4457ddf5e8a31ce85c1e15307db9d65069b"
  }
}
