From fb2cfb782f800a124e21fab9d65ec116561f20b6 Mon Sep 17 00:00:00 2001 From: Caio Araujo Date: Wed, 14 Jan 2026 14:02:19 -0800 Subject: [PATCH] Update media docs --- docs/capabilities/server/media-uploads.mdx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/capabilities/server/media-uploads.mdx b/docs/capabilities/server/media-uploads.mdx index 66da855..76e1b1b 100644 --- a/docs/capabilities/server/media-uploads.mdx +++ b/docs/capabilities/server/media-uploads.mdx @@ -22,7 +22,7 @@ Enable the `media` permission in your `devvit.json` file. ``` ## Using media uploads -On the server, you can pass the URL of any remotely hosted image (even if its not hosted on Reddit) to the `media.upload` function. The media function will return a Reddit URL. +On the server, you can pass the URL of any remotely hosted image (even if its not hosted on Reddit) to the `media.upload` function. This function will return a Reddit URL. Both HTTP and data URLs are supported. @@ -50,9 +50,12 @@ On the server, you can pass the URL of any remotely hosted image (even if its no ## Limitations -Supported file types are: -- GIF -- PNG -- JPEG -Maximum size is 20 MB. +The following file types are supported, along with a corresponding maximum size limit: +- JPEG, PNG, and WEBP: up to 20 MB +- GIF: up to 100 MB + +### Notes + +- When uploading through a data URL, the size limit is 7.5 MB regardless of file type due to request size limits. +- When uploading a WEBP image, it will be converted to JPEG. As such, the Reddit URL returned points to a JPEG image. \ No newline at end of file