Upload Attachment
POST/
Upload an attachment to Effis under a specific bucket. This is a shortcut to Upload File with the attachments bucket.
Request Body
A multipart/form-data
FileUpload
Response
Field | Type | Description |
---|---|---|
id | Number | The ID of the file. |
name | String | The name of the file. |
bucket | String | The bucket the file is stored in. |
spoiler? | Boolean | If the file is spoilered. |
metadata | FileMetadata | The File Metadata of the file. |
Example
curl \
-F file=@thang-big.png \
-F spoiler=false \
https://cdn.eludris.gay/
{
"id": 2199681302540,
"name": "thang-big.png",
"bucket": "attachments",
"metadata": {
"type": "image",
"width": 702,
"height": 702
}
}