Skip to content

Commit 75dcca5

Browse files
committed
changelog
1 parent 42bcc27 commit 75dcca5

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "Per-Attachment File Upload Limit for Apps"
3+
date: "2025-04-03"
4+
breaking: false
5+
topics:
6+
- "HTTP API"
7+
- "Interactions"
8+
---
9+
10+
Starting today, file upload limits for apps are checked per-attachment rather than per-message. This change makes the attachment behavior for apps the same as when a user uploads multiple attachments on a single message.
11+
12+
- File size limits now apply to each individual attachment
13+
- Previously, limits were applied to the combined size of all attachments in a message
14+
- This aligns app attachment handling with user attachment behavior
15+
16+
Additionally, the interaction payload will include a new `attachment_size_limit` key that specifies the maximum allowed attachment size, which may exceed the default attachment size limit in boosted guilds.
17+
18+
For more information, check out [our documentation on file uploads](#DOCS_REFERENCE/uploading-files).

docs/interactions/receiving-and-responding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For [Message Components](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/) it includes ide
3737
| entitlements | array of [entitlement](#DOCS_RESOURCES_ENTITLEMENT/entitlement-object) objects | For [monetized apps](#DOCS_MONETIZATION_OVERVIEW), any entitlements for the invoking user, representing access to premium [SKUs](#DOCS_RESOURCES_SKU) |
3838
| authorizing_integration_owners | dictionary with keys of [application integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | Mapping of installation contexts that the interaction was authorized for to related user or guild IDs. See [Authorizing Integration Owners Object](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-authorizing-integration-owners-object) for details |
3939
| context? | [interaction context type](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) | Context where the interaction was triggered from |
40-
| attachment_size_limit | integer | Attachment size limit in bytes |
40+
| attachment_size_limit | integer | Attachment size limit in bytes |
4141

4242
\* This is always present on application command, message component, and modal submit interaction types. It is optional for future-proofing against new interaction types
4343

0 commit comments

Comments
 (0)