飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions112

消息 → 上传文件

AI-generated

Summary

Uploads each input item’s binary file to Feishu and returns the upload response, including its file token. Choose a file type and the incoming binary field; optional settings control the uploaded filename, media duration, batching, and request timeout.

Inputs

  • 凭证类型 (required) — Select user-level or app-level Feishu credentials; defaults to app-level credentials.
  • 文件类型 (required) — File category: OPUS audio, MP4 video, PDF, DOC, XLS, PPT, or stream for other types. Defaults to stream.
  • Input Data Field Name (required) — Binary field on each incoming item containing the file data. Defaults to data.
  • 自定义文件名 — Filename including its extension. If omitted, the filename from the incoming binary data is used.
  • 文件时长(毫秒) — Duration in milliseconds for audio or video files; defaults to 0.
  • Batching — Adding this option enables concurrent uploads, with a default batch size of 50 items. Batch Interval controls the delay between batches and defaults to 1000 ms in the UI; set it to 0 to disable the delay.
  • Timeout — Request timeout in milliseconds; 0 means no timeout.

Output shape

A list of n8n items containing Feishu upload response data, typically including a file_token for each uploaded file.

Processes each incoming item serially by default, or concurrently when Batching is added. With Continue On Fail enabled, a failed item produces an error field instead of stopping execution. The source does not show how the selected file type or duration is sent in the upload request.

Links

Discussion