企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

素材管理 → [素材管理] 上传临时素材

AI-generated

Summary

Uploads a binary file from each input item to WeCom as temporary media. The returned media_id is valid for three days and can be shared across applications in the same enterprise.

Inputs

  • 素材类型 (`type`) (required) — Select image, voice, video, or file. WeCom lists limits of 10 MB for images (JPG/PNG), 2 MB and up to 60 seconds for AMR voice, 10 MB for MP4 video, and 20 MB for files.
  • 二进制数据属性 (`binaryProperty`) (required) — Name of the input item's binary property containing the file; defaults to data. The uploaded file's filename is used as its displayed name when the media ID is used in a message.

Output shape

One output item per uploaded input item, with the WeCom upload response in its JSON data.

The response includes the temporary media_id; it expires after three days. The source pack shows the upload operation, but not the response mapping details.

Links

Discussion