飞书项目 icon

飞书项目

飞书项目管理 API 集成,支持工作项、空间、用户、工作流等完整功能

Actions76

文件 → 上传文件

AI-generated

Summary

Uploads one binary file from each input item to a Feishu Project space for use as a work item resource. The upload returns the file information; the file must later be bound to a business location such as a comment before it can be downloaded.

Inputs

  • 空间 (required) — Select or enter the Feishu Project space key.
  • 资源类型 (required) — Choose CommentAttachment for a comment attachment or CommentMultiTextImg for an image in comment rich text.
  • Input Binary Field (required) — Name of the incoming binary field containing the file. Each item uploads one file; files are limited to 20 MB. Set the binary MIME type to match the file format for previews.
  • 工作项类型 Name or ID (required) — Select or enter the work item type key in the selected space.
  • 工作项实例ID (required) — ID of the work item instance to associate with the upload.
  • 自定义文件名 — Optional filename including its extension; defaults to the original filename.
  • 业务类型 — Optional comment_biz_type value; defaults to WORKITEM.
  • Batching — Enables concurrent uploads when added. Configure items per batch (default 50; 0 is treated as 1) and the delay between batches in milliseconds (default 1000).
  • Timeout — Request timeout in milliseconds; 0 means no timeout.

Output shape

A list of output items, normally one per uploaded input file.

Each successful API response is returned as JSON with input-item linking metadata. With Continue On Fail enabled, failed items produce an error object. Unbound files cannot be downloaded and are automatically deleted after 7 days if they are not bound to a business location.

Links

Discussion