From 1f51faa795deeac86a1826ec445c0f68b231fbfb Mon Sep 17 00:00:00 2001 From: AmirGhost11 Date: Tue, 2 Jun 2026 16:25:42 +0000 Subject: [PATCH] Update Media --- Media.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Media.md b/Media.md index 4c02653..193d38c 100644 --- a/Media.md +++ b/Media.md @@ -2,9 +2,12 @@ Server can store multimedia, but this feature is permitted. ## Permission: -To prevent running out of storage, uploads are strict. JWToken is required in media mutation endpoints. Every user has a field `uploadRemaining` which is 0 by default. Certain hard-coded behaviors like cronjobs, buying premium, etc., can increment this field and allow users to have access to upload endpoints. +To prevent running out of storage, uploads are strict. JWToken is required in media mutation endpoints. Every user has a field `uploadRemaining` which is 0 by default. Certain hard-coded behaviors like cronjobs, buying premium, etc., can increment this field and allow users to access upload endpoints. ## File Types: +filetype is an enum that indicates the purpose of the media. Several filetypes have been defined in Server: +- **profile**: user uploaded profile picture +- **profile_predefined**: developer uploaded profile picture ## Endpoints: ### `POST` `/media/upload`: _`MultiPart`_