Skip to content

Commit 3cf9534

Browse files
committed
attachment_size_limit is MAX(default_limit, user_limit, guild_limit)
1 parent 75dcca5 commit 3cf9534

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: "Per-Attachment File Upload Limit for Apps"
2+
title: "Per-Attachment File Upload Behavior for Apps"
33
date: "2025-04-03"
44
breaking: false
55
topics:
66
- "HTTP API"
77
- "Interactions"
88
---
99

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.
10+
Starting today, file upload limits for apps are checked per-attachment rather than per-message. This change makes the app attachment behavior the same as when a user uploads multiple attachments on a single message.
1111

1212
- File size limits now apply to each individual attachment
1313
- Previously, limits were applied to the combined size of all attachments in a message
1414
- This aligns app attachment handling with user attachment behavior
1515

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.
16+
The interaction payload will also include a new `attachment_size_limit` key that specifies the maximum allowed attachment size. This limit may be higher than the default attachment size limit, depending on the guild's boost status or the invoking user's Nitro status.
1717

1818
For more information, check out [our documentation on file uploads](#DOCS_REFERENCE/uploading-files).

docs/reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ https://cdn.discordapp.com/attachments/1012345678900020080/1234567891233211234/m
397397
## Uploading Files
398398

399399
> info
400-
> The file upload size limit applies to each file in a request. While the limit depends on the [**Boost Tier**](https://support.discord.com/hc/en-us/articles/360028038352-Server-Boosting-FAQ-#h_419c3bd5-addd-4989-b7cf-c7957ef92583) of a guild, it is `10 MiB` by default. The `attachment_size_limit` value is provided to your app [when working with interactions](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-structure).
400+
> The file upload size limit applies to each file in a request. The default limit is `10 MiB` for all users, but may be higher for users depending on their [Nitro](https://support.discord.com/hc/en-us/articles/115000435108-What-are-Nitro-Nitro-Basic) status or by the server's [Boost Tier](https://support.discord.com/hc/en-us/articles/360028038352-Server-Boosting-FAQ-#h_419c3bd5-addd-4989-b7cf-c7957ef92583). The `attachment_size_limit` value provided [when working with interactions](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-structure) is calculated as the maximum of these values.
401401
402402
Some endpoints support file attachments, indicated by the `files[n]` parameter. To add file(s), the standard `application/json` body must be replaced by a `multipart/form-data` body. The JSON message body can optionally be provided using the `payload_json` parameter.
403403

0 commit comments

Comments
 (0)