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.