From 3f74c7bb71fa0bcaadc3006edb68965d445e3db4 Mon Sep 17 00:00:00 2001 From: Caio Araujo <99554015+kay0tickay@users.noreply.github.com> Date: Fri, 30 Jan 2026 09:19:37 -0800 Subject: [PATCH] Revert "Update image upload docs (#25)" This reverts commit eeb6781b776499b25dd366dc3602e82d529f4129. --- docs/capabilities/server/media-uploads.mdx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/capabilities/server/media-uploads.mdx b/docs/capabilities/server/media-uploads.mdx index 76e1b1b..66da855 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. This function will return a Reddit URL. Both HTTP and data URLs are supported. +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. @@ -50,12 +50,9 @@ 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 -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 +Maximum size is 20 MB.