Workflow step

Archive

Use Zip to bundle several files into one download. Use Unzip to open one or more ZIP archives and send the extracted files to later steps. Choose Add step → Archive, then select the operation in Setup.

Zip attachments into one file

  1. In Configure → File or attachments, select a File from an earlier step or a whole list. For all attachments from a Mailhook email, select New inbound email → attachments (trigger.attachments).
  2. Set Archive name to the name you want the recipient to see, such as invoices.zip. The default is archive.zip. FastHook adds the .zip extension if you leave it off.
  3. In the next action, map Archive’s file output. For Google Drive → Upload File, select the destination folder and use file as the upload. Three attachments produce one ZIP and one upload. The count output tells you how many files went into it.

Zip keeps relative paths when supplied. If two attachments are both named invoice.pdf, both are kept as invoice.pdf and invoice (2).pdf.

Unzip several archives from one email

  1. In Configure → ZIP file or attachments, select one ZIP File or map the whole attachments list. From a list, Unzip selects every file with a .zip extension or a ZIP MIME type. You can leave photos, PDFs, and other attachments in the input.
  2. Use the files output to access the extracted files from all selected archives. Each item includes its file reference, name, size, and mime_type. Use archive_name to identify the source ZIP and path to see where the file was stored inside it. count is the total number of extracted files.
  3. To save each file separately, add a Loop, choose Array, and select Archive → files. Place Google Drive → Upload File inside the Loop and map Current loop item to the upload. An attachment list with no ZIPs yields an empty list and a count of zero.

Test with a mixed email

Send your Mailhook a message with a PDF, a ZIP containing two photos, and another ZIP containing three photos. Capture the message in the trigger’s Test tab, then test the Archive step with that record.

With Zip, expect count to be 3. Open the resulting ZIP to see the PDF and the two original archives. With Unzip, expect count to be 5. The Loop uploads the five photos individually. The original PDF is still available in Mailhook’s attachments if another step needs it.

File and size limits

OperationInputsResult
Zip1–256 files, up to 24 MiB combinedOne ZIP of up to 25 MiB
UnzipUp to 32 ZIPs, up to 25 MiB combinedUp to 24 MiB extracted across all archives. The 256-entry limit includes directory entries.

If Unzip reports an encrypted entry, supply a ZIP without password protection. If it reports an unsupported path, recreate the ZIP with ordinary files and relative paths such as photos/front.jpg. Symbolic links and paths containing .. are rejected.