Upload an asset
$ beeper-desktop-cli assets upload
POST/v1/assets/upload
Upload a file to a temporary location using multipart/form-data. Returns an uploadID that can be referenced when sending messages with attachments.
Parameters
--file: file path
The file to upload (max 500 MB).
--file-name: optional string
Original filename. Defaults to the uploaded file name if omitted
--mime-type: optional string
MIME type. Auto-detected from magic bytes if omitted
Returns
Upload an asset
beeper-desktop-cli assets upload \
--file file{
"duration": 0,
"error": "error",
"fileName": "fileName",
"fileSize": 0,
"height": 0,
"mimeType": "mimeType",
"srcURL": "srcURL",
"uploadID": "uploadID",
"width": 0
}Returns Examples
{
"duration": 0,
"error": "error",
"fileName": "fileName",
"fileSize": 0,
"height": 0,
"mimeType": "mimeType",
"srcURL": "srcURL",
"uploadID": "uploadID",
"width": 0
}