节点与集成

Compression

Use the Compression node to compress and decompress files. Supports Zip, Gzip, Tar, and Tar.gz formats.

Node parameters

The node parameters depend on which Operation you select. Choose to:

  • Compress: Create a compressed file from your input data.
  • Decompress: Decompress an existing compressed file.

Refer to the sections below for parameters specific to each Operation.

Compress

  • Input Binary Field(s): Enter the name of the fields in the input data that contain the binary files you want to compress. To compress more than one file, use a comma-separated list.
  • Output Format: Choose whether to format the compressed output as Zip, Gzip, Tar, or Tar (Gzip).
  • File Name: Enter the name of the compressed file the node creates.
  • Put Output File in Field: Enter the name of the field in the output data to contain the file.

Decompress

The Decompress operation detects the archive format from the file extension and supports the following formats:

  • .zip
  • .gz and .gzip
  • .tar
  • .tar.gz and .tgz

When you decompress a .tar.gz or .tgz archive, the node extracts all member files in a single step. You don't need to decompress the gzip layer separately.

  • Input Binary Field(s): Enter the name of the fields in the input data that contain the binary files you want to decompress. To decompress more than one file, use a comma-separated list.
  • Output Prefix: Enter a prefix to add to the output file name. The node uses this prefix, followed by an incrementing index, to name each extracted file.

Templates and examples

Browse n8n-nodes-base.compression integration templates or search all templates

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明