Skip to main content

handle_work_media_upload

Function handle_work_media_upload 

Source
pub(super) async fn handle_work_media_upload(
    __arg0: State<AppState>,
    __arg1: Query<UploadQuery>,
    body: Body,
) -> Response
Expand description

POST /agentmux/work/media?name=: the body is one file. → 200 {sha256, name, kind, mime, size} · 400 empty · 413 over the size of its kind · 415 not an image or recording.

Read as a stream and counted as it is written, as the attachments upload is.