飞书项目 icon

飞书项目

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

Actions75

附件 → 文件上传

AI-generated

Overview

This node operation uploads files as attachments to a specified project space in Feishu. It is useful for automating file uploads within workflows, such as attaching documents, images, or other binary data to project spaces for collaboration or record-keeping. For example, users can upload files from binary data fields in their workflow to a Feishu project space automatically.

Use Case Examples

  1. Uploading a PDF report stored in a binary field to a project space for team access.
  2. Automatically attaching images from a form submission to a Feishu project space.

Properties

Name Meaning
空间 The project space to which the file will be uploaded. Users can select from a list or manually input the project_key.
Input Binary Field The name of the binary data field containing the file to upload. The attachment size limit is currently 100MB.
Options Additional options for the upload operation, including batching and timeout settings.

Output

JSON

  • error - Error message if the upload fails for an item.
  • details - Detailed error information if available.

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Ensure the project_key is valid and accessible by the API credentials used.
  • Verify the binary data field name matches the input data containing the file.
  • Check file size does not exceed 100MB limit.
  • If batching is enabled, ensure batch size and interval are set appropriately to avoid rate limiting or timeouts.
  • Common errors include NodeOperationError for unsupported methods and API errors for invalid inputs or permissions.

Links

Discussion