ZIP/UnZIP

The Zip/UnZip integration component provides a simple yet powerful way to extract files from an archive or create a new archive for distribution.

Triggers

This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.

Actions

Zip

This action will archive any provided files.

When you execute this action, it will archive all provided files.

The process works by iterating through each of the body files.

For each file, if the path matches the configured regex, the file will be downloaded from the provided URL and appended to the ZIP file using the provided path as the location and name of the file.

The output will include an attachment that contains a URL to the archive.

Zip configuration
1 regex

The regular expression for filename matching (with extension). Only files that match this regex will be added to the archive. The default is match all '[^]*'.

2 httpTimeout

The number of milliseconds for HTTP request timeouts. The default is 60000 milliseconds(60 sec).

3 httpRetry

The number of retries for HTTP requests. The default is 3.

4 zipName

The output archive filename with extension. By default generate UUID name with .zip extension.

Input schema

Contains array of items with properties:

url

The URL from which the file can be downloaded.

path

The path under which the file will be stored inside the archiver. The regex will perform validation only on the filename with the extension in the path.

Output schema

The output contains the size of the new archive in the body and the URL to the archive itself in attachments.

UnZIP action

This action will unzip the provided archive file.

Only files that match the configured regex and with uncompressed size less than the maxFileSize setting will be unzipped:

Unzip configuration
1 regex

The regular expression for filename matching (with the extension). Only files that match the regex will be unzipped. The default is match all '[^]*'.

2 maxFileSize

The default value for the number of bytes is 104857600 bytes (100MB). This is the maximum file size and any files with a larger uncompressed size will not be unzipped.

3 httpTimeout

The number of milliseconds for HTTP request timeouts. The default is 60000 milliseconds(60 sec).

4 httpRetry

The number of retries for HTTP requests. The default is 3.

Input schema:

Contains the url property that provides the URL to the archive file to be downloaded and unzipped.

Output schema

Contains an array of items with properties:

filename

The name of the archive with extension.

size

The uncompressed archive size.

Limitations/Other

  • The attachments mechanism does not work with the Local Agent Installation.

  • The unzip action does not support archived directories. It can only unzip archived files.