企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

企业微信办公功能 - 文档、微盘、邮件、日程、会议、直播、打卡、审批、汇报、人事、会议室、紧急通知、公费电话

Actions259

微盘 → [文件管理] 上传文件

AI-generated

Summary

Uploads a file to WeCom WeDrive (微盘), placing it in a space and folder or at a location selected by ticket. Provide the file contents as Base64 or from an n8n binary property; the declared size limit is 10 MB.

Inputs

  • locationMethod (required) — Choose whether to specify the destination with a space ID and optional parent folder ID, or with a selectedTicket from the WeCom file picker.
  • spaceId (required) — Destination WeDrive space ID; shown when locationMethod is space.
  • fatherId — Destination parent folder ID; shown when locationMethod is space. The UI says to leave it empty for the space root.
  • selectedTicket (required) — Picker ticket returned by the WeDrive and file selector JSAPI; shown when locationMethod is ticket.
  • fileName (required) — Name for the uploaded file, including its extension. The UI documents a 255-character weighted limit: English characters count as one and Chinese characters as two.
  • contentMethod (required) — Choose Base64 content or an n8n binary property as the source of the file data.
  • base64Content (required) — File contents encoded as Base64, without a data-URL prefix; shown when contentMethod is base64.
  • binaryPropertyName (required) — Name of the incoming n8n binary property containing the file; defaults to data and is shown when contentMethod is binary.

Output shape

A single item per input item, containing the WeCom API response.

The source pack provides only the execute function signature, not its body, so it does not establish the exact response fields or whether the API response is transformed. The UI documents a 10 MB file size limit for either content method.

Links

Discussion