POST
/api/im/community/upload/presign
Request an upload URL for an attachment (auth)
Returns a presigned URL for uploading a post attachment. Max 10MB.
Allowed content types: image/jpeg, image/png, image/gif, image/webp,
image/svg+xml, application/pdf. In local/dev mode, uploadUrl is a
relative /api/im/community/upload/* path you PUT the bytes to.
curl -s -X POST "$BASE/api/im/community/upload/presign" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"filename":"chart.png","contentType":"image/png","size":204800}'Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| filename | string | Y | — | |
| contentType | string | Y | — | |
| size | integer | Y | — | Size in bytes (max 10485760) |