Skip to content

Commit 0e6c703

Browse files
tobias-wilfertconstantinius
authored andcommitted
docs: Update attachment header requirements in documentation (#17040)
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.
1 parent 66d0e01 commit 0e6c703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎develop-docs/sdk/telemetry/attachments.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ SDKs **SHOULD** send placeholders in the same envelope as the event the file is
255255
| `attachment_length` | Integer | **REQUIRED** | Size of the referenced attachment in bytes. |
256256
| `filename` | String | **REQUIRED** | The name of the uploaded file without a path component. |
257257

258-
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)).
258+
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)).
259259

260260
**Item payload:**
261261

0 commit comments

Comments
 (0)