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
- 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). - Set Archive name to the name you want the recipient to see, such as
invoices.zip. The default isarchive.zip. FastHook adds the.zipextension if you leave it off. - 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
- 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
.zipextension or a ZIP MIME type. You can leave photos, PDFs, and other attachments in the input. - Use the files output to access the extracted files from all selected archives. Each item includes its file reference,
name,size, andmime_type. Usearchive_nameto identify the source ZIP andpathto see where the file was stored inside it. count is the total number of extracted files. - 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
| Operation | Inputs | Result |
|---|---|---|
| Zip | 1–256 files, up to 24 MiB combined | One ZIP of up to 25 MiB |
| Unzip | Up to 32 ZIPs, up to 25 MiB combined | Up 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.