Upload File
POST/<bucket>
Upload a file to Effis under a specific bucket. At the moment, only the attachments bucket is supported.
Path Params
| Name | Type | 
|---|---|
| bucket | String | 
Request Body
| Field | Type | Description | 
|---|---|---|
| file | File | 
Response
200FileData
| Field | Type | Description | 
|---|---|---|
| id | Number | The file’s ID. | 
| name | String | The file’s name. | 
| bucket | String | The bucket the file is stored in. | 
| metadata | FileMetadata | The File Metadata of the file. | 
Example
curl \
  -F file=@trolley.mp4 \
  https://cdn.eludris.gay/attachments/
{
  "id": 2198189244420,
  "name": "trolley.mp4",
  "bucket": "attachments",
  "metadata": {
    "type": "video",
    "width": 576,
    "height": 682
  }
}