企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

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

Actions259

微盘 → [分片上传] 初始化分片上传

AI-generated

Summary

Starts a WeCom Drive chunked upload by submitting the destination, file metadata, and SHA-1 hashes for each 2 MiB chunk. Use the returned upload initialization data in the subsequent chunk-upload steps.

Inputs

  • Upload location method (required) — Choose a space and folder, or provide a file-picker selected_ticket.
  • Space ID (required) — Required for the space-and-folder method; identifies the destination space.
  • Parent folder ID — Optional destination folder ID. Use the space ID for the root directory.
  • Selected ticket (required) — Required for the ticket method; use the selected_ticket returned by the WeCom Drive file picker.
  • File name (required) — Name of the file to upload.
  • File size (bytes) (required) — File size in bytes, from 1 to 20 GiB.
  • Block SHA list (required) — Cumulative SHA-1 hashes for each 2 MiB block, as 40-character hexadecimal values separated by commas, Chinese commas, vertical bars, or newlines.
  • Skip push card — Optional boolean, default false; controls whether to skip sending a push card.

Output shape

A single initialization response item

Provides the data needed to continue the chunked upload. The operation initializes the upload; it does not send the file's block contents.

Links

Discussion