Skip to content

Commit

Permalink
Document default file upload limit (#7312)
Browse files Browse the repository at this point in the history
* Added file upload change

* Changelog
  • Loading branch information
colinloretz authored Dec 17, 2024
1 parent 5af3428 commit c81cd01
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ https://cdn.discordapp.com/attachments/1012345678900020080/1234567891233211234/m
## Uploading Files

> info
> A file upload size limit applies to *all* files in a request (rather than each individual file). 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 `25 MiB` by default.
> A file upload size limit applies to *all* files in a request (rather than each individual file). 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.
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.

Expand Down
17 changes: 17 additions & 0 deletions docs/change_log/2024-12-17-updated-file-upload-limit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Default File Upload Limit Change"
date: "2024-12-16"
breaking: true
topics:
- "HTTP API"
- "Interactions"
---

On January 16, 2025, the default file upload limit will change from 25 MiB to 10 MiB.

While this limit is already active for users and bot users, it hasn't yet been applied to webhooks.

- This change will take effect on January 16, 2025.
- The 10 MiB limit will apply to both webhooks and interaction responses.

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

0 comments on commit c81cd01

Please sign in to comment.