Skip to main content

upload_task_media

Function upload_task_media 

Source
pub(super) async fn upload_task_media(
    paths: &[String],
    captions: Option<&Value>,
    cx: &ToolCtx<'_>,
) -> Result<Vec<Value>>
Expand description

Check each path, then upload each to srv’s task media store; returns what Tasks update and submit carry: [{sha256, name, caption}]. Nothing has changed on the task when this fails.