PuppyIP Resource Center
Cloud Operations 5 min Published 2026-12-01

Cloudflare Rules: inspect multipart upload headers, preambles, and empty parts

Cloudflare Enterprise now reads multipart upload headers by part. Use the new fields to diagnose repeated headers, leading content, and empty parts.

Cloudflare Rules File Uploads Multipart

Service eligibility and regional restrictions

PuppyIP serves only compliant overseas businesses and their authorized personnel. Proxy services are not available in mainland China. The service may only be used for lawful business activities outside mainland China. Use of this service within mainland China is prohibited.

Hosting a proxy IP or server overseas does not change these restrictions. The service must not be provided to end users in mainland China through relaying, forwarding, sharing or resale. Before use, read the Terms of Service.

Key Takeaways

  • Cloudflare announced five Enterprise Rules fields for multipart inspection on November 27.
  • Use the grouped headers to look up a name. Use the paired name and value arrays when original capitalization and order matter.
  • Parts with neither headers nor body are skipped and counted separately. Parsing limits still apply.

What is a multipart part?

Browsers often submit file uploads and text fields as separate parts of one request. Each part can have headers that describe that part’s content. These fields help you distinguish its metadata from neighboring parts.

Cloudflare announced five inspection fields on November 27, 2026, for Enterprise. When diagnosing your own upload form, pick the field that answers the question about header lookup, occurrence order, or empty parts.

How do I look up headers by name?

Use `http.request.body.multipart.headers` to look up headers by name. Cloudflare gives each parsed part a map, lowercases the names, and keeps repeated values in an array in occurrence order. Both standard and custom names can appear.

If one part in a test form has two diagnostic headers with the same name, check the number of values in that part’s map. Reading only the first value misses later occurrences. A part with a body and no headers remains in the array with an empty header map.

How do I keep original capitalization and order?

Use `http.request.body.multipart.headers.names` and `http.request.body.multipart.headers.values` together when the position of a repeated header matters. Within the same part, the name array preserves capitalization and occurrence order. Values are aligned by position.

Record both the part and the header position. An upload may carry several files or fields, and identically named headers in different parts still belong to those parts. Reviewing names and values together helps distinguish duplicates from comparisons between different parts.

What do the preamble and empty-part fields show?

`http.request.body.multipart.preamble` covers content before the first boundary delimiter, including the preceding line ending. It is empty if the request body begins with that delimiter.

`http.request.body.multipart.empty_parts_count` counts parts with neither headers nor body that the parser encounters. These parts are skipped in the parsed arrays. A part with a header or a body is a different case.

What can the inspection result tell me?

Submit a small ordinary form on a test site you control, using non-sensitive placeholder text. Record expected fields, what Cloudflare parsed, and the fields the application received, then compare those observations for the same request.

Request-body inspection and multipart parsing have limits. Cloudflare’s fields describe the data its parser saw. When a field appears missing, check the inspection scope and what the application received before deciding whether to change the form generator or the application parser.

Sources

Frequently Asked Questions

Does a repeated header name preserve only one value?

The grouped field stores repeated values in an array, preserving occurrence order.

Does a part with a body and no headers count as empty?

A part with a body remains in the parsed arrays. The empty-part counter applies to parts with neither headers nor body.

Can any Cloudflare plan use these five fields?

Cloudflare lists Enterprise as a requirement. Request-body inspection and parsing limits also apply.