From 3365ae8da4f85f89015bc243b2c5017271e56f52 Mon Sep 17 00:00:00 2001 From: Tobias Wilfert <36408720+tobias-wilfert@users.noreply.github.com> Date: Thu, 19 Mar 2026 14:43:25 +0100 Subject: [PATCH 1/2] Update attachment header requirements in documentation While implementing this in Relay noticed that `ChunkedAttachment` has a `attachment_type` field which we want to set with the original file's attachment type. --- develop-docs/sdk/telemetry/attachments.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/develop-docs/sdk/telemetry/attachments.mdx b/develop-docs/sdk/telemetry/attachments.mdx index ea79d38e58069..b6621756bd70e 100644 --- a/develop-docs/sdk/telemetry/attachments.mdx +++ b/develop-docs/sdk/telemetry/attachments.mdx @@ -255,7 +255,7 @@ SDKs **SHOULD** send placeholders in the same envelope as the event the file is | `attachment_length` | Integer | **REQUIRED** | Size of the referenced attachment in bytes. | | `filename` | String | **REQUIRED** | The name of the uploaded file without a path component. | -The item header **MAY** also contain `attachment_type` and the original file's `content_type` as an additional field (see [Standard Attachment Item](#standard-attachment-item)). +The item header **MUST** also contain the original file's `attachment_type` (if any) and **MAY** contain the original file's `content_type` as an additional field (see [Standard Attachment Item](#standard-attachment-item)). **Item payload:** From f1bd2371e6bee8cfc4b8a824761ce52faab05b25 Mon Sep 17 00:00:00 2001 From: Tobias Wilfert <36408720+tobias-wilfert@users.noreply.github.com> Date: Thu, 19 Mar 2026 15:19:48 +0100 Subject: [PATCH 2/2] Update develop-docs/sdk/telemetry/attachments.mdx Co-authored-by: Joris Bayer --- develop-docs/sdk/telemetry/attachments.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/develop-docs/sdk/telemetry/attachments.mdx b/develop-docs/sdk/telemetry/attachments.mdx index b6621756bd70e..e6d13d4be7c23 100644 --- a/develop-docs/sdk/telemetry/attachments.mdx +++ b/develop-docs/sdk/telemetry/attachments.mdx @@ -255,7 +255,7 @@ SDKs **SHOULD** send placeholders in the same envelope as the event the file is | `attachment_length` | Integer | **REQUIRED** | Size of the referenced attachment in bytes. | | `filename` | String | **REQUIRED** | The name of the uploaded file without a path component. | -The item header **MUST** also contain the original file's `attachment_type` (if any) and **MAY** contain the original file's `content_type` as an additional field (see [Standard Attachment Item](#standard-attachment-item)). +The item header **MUST** also contain the original file's `attachment_type` if it was set. The item payload **MUST** contain the original file's `content_type` as a field in the JSON object (see [Standard Attachment Item](#standard-attachment-item)). **Item payload:**