Articles in this section

Zip multiple files and upload to an FTP server

You can compress multiple files with Amazon Web Services (AWS) S3Zipper.

Warning

Celigo has not verified, used, or endorsed the S3Zipper tool. Use it at your own cost and risk.

Create a flow to zip and upload a file to an FTP server.

Requirements

Step 1: FTP export to retrieve files

Step 2: Import your files to Amazon S3

Import (transfer) your files to Amazon S3.

  1. Generate files from records: No.

  2. Region: The default Amazon S3 region is [us-east-1]. To change the region, select the region for this S3 account.

  3. Bucket name (required): Name of the bucket in S3, where you want the file to be saved.

  4. File key (required): Add handlebars for each filename . For example, {{record.files.*.fileName}}

    Note: Do not substitute the fileName with your filename; it will be dynamically created by the handlebars expression.

  5. Advanced:

    1. "Blob key path (optional): Set the field to blobKey

21795858821147-S3 import.png

Step 3: Import to Amazon S3Zipper

Import (transfer) your file to Amazon S3Zipper (HTTP) and store the zipped file in your S3 account. In your import:

  1. Generate a file from your record: No.

  2. HTTP method (required): POST

  3. Relative URI (required): /v2/zipstart

  4. HTTP request body:

    [
        {"name" : "awsKey", "value" : "********"},
        {"name" : "awsSecret", "value" : "*********"},
        {"name" : "awsBucket", "value" : "directoryPath"},
        {"name" : "awsRegion", "value" : "us-east-1"},
        {"name" : "filePaths", "value" : "directoryPath/{{record.files.0.fileName}}"},
        {"name" : "filePaths", "value" : "directoryPath/{{record.files.1.fileName}}"},
        {"name" : "filePaths", "value" : "directoryPath/{{record.files.2.fileName}}"},
        {"name" : "filePaths", "value" : "directoryPath/{{record.files.3.fileName}}"},
        {"name" : "zipTo", "value" : "directoryPath"},
        {"name" : "zipFileName", "value" : "{{record.files.4.fileName}}.zip"}
    ]
        
21795849611419-Handlebars in S3Zipper.png

Step 4: Amazon S3 lookup

Build an Amazon S3 Lookup to get the ZIP file.

21795849617307-S3 lookup.png

Step 5: Import the ZIP file to your FTP server

Create an FTP import to transfer the ZIP file to your FTP server.