>>

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

FieldTypeDescription
fileFile
>>

Response

200FileData

FieldTypeDescription
idNumberThe file’s ID.
nameStringThe file’s name.
bucketStringThe bucket the file is stored in.
metadataFileMetadataThe File Metadata of the file.
>>

Example

curl \
  -F file=@thang-big.png \
  https://cdn.eludris.gay/

{
  "id": 2199681302540,
  "name": "thang-big.png",
  "bucket": "attachments",
  "metadata": {
    "type": "image",
    "width": 702,
    "height": 702
  }
}