Skip to content

Commit 3f74c7b

Browse files
authored
Revert "Update image upload docs (#25)"
This reverts commit eeb6781.
1 parent 8848f7e commit 3f74c7b

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

docs/capabilities/server/media-uploads.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Enable the `media` permission in your `devvit.json` file.
2222
```
2323

2424
## Using media uploads
25-
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.
25+
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.
2626

2727
<Tabs>
2828
<TabItem value="web" label="Devvit Web">
@@ -50,12 +50,9 @@ On the server, you can pass the URL of any remotely hosted image (even if its no
5050

5151

5252
## Limitations
53+
Supported file types are:
54+
- GIF
55+
- PNG
56+
- JPEG
5357

54-
The following file types are supported, along with a corresponding maximum size limit:
55-
- JPEG, PNG, and WEBP: up to 20 MB
56-
- GIF: up to 100 MB
57-
58-
### Notes
59-
60-
- When uploading through a data URL, the size limit is 7.5 MB regardless of file type due to request size limits.
61-
- When uploading a WEBP image, it will be converted to JPEG. As such, the Reddit URL returned points to a JPEG image.
58+
Maximum size is 20 MB.

0 commit comments

Comments
 (0)