>>

Upload File

POST/<bucket>

Upload a file to Effis under a specific bucket. At the moment, only the attachments bucket is supported.

>>

Path Params

NameType
bucketString
>>

Request Body

A multipart/form-data FileUpload

>>

Response

FileData

FieldTypeDescription
idNumberThe ID of the file.
nameStringThe name of the file.
bucketStringThe bucket the file is stored in.
spoiler?BooleanIf the file is spoilered.
metadataFileMetadataThe File Metadata of the file.
>>

Example

curl \
  -F file=@trolley.mp4 \
  -F spoiler=true \
  https://cdn.eludris.gay/attachments/

{
  "id": 2198189244420,
  "name": "trolley.mp4",
  "bucket": "attachments",
  "spoiler": true,
  "metadata": {
    "type": "video",
    "width": 576,
    "height": 682
  }
}