# Save images from email attachments and ZIP archives to Google Drive

Send images and ZIP archives to your Mailhook address. This workflow collects image attachments and images inside each ZIP, skips other files, and uploads each image separately to the Google Drive folder you choose.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=mailhook-unzip-attachments-to-google-drive&templateName=Save+images+from+email+attachments+and+ZIP+archives+to+Google+Drive)

**Required accounts**

- Google Drive

## Workflow steps

### 1. Trigger · New inbound email

**Mailhook**. Start when an email arrives at the workflow’s FastHook address.

### 2. Transformation · Unzip all ZIP attachments

**Archive**. Extract the files from ZIP attachments.

### 3. Transformation · Keep images from email and ZIP files

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 4. Loop · For each image

**FastHook**. Run the enclosed steps for each item in the selected array.

### 5. Action · Upload image to Google Drive

**Google Drive**. Upload a File output to My Drive, a folder, or a Shared Drive.

## Set up your workflow

1. **Copy the template** Open the template in FastHook to create an editable Workflow Draft.
2. **Connect your accounts** Connect your accounts for Mailhook, Google Drive.
3. **Review the Workflow** Review the Steps, field mappings, routes, and provider settings.
4. **Activate** Activate the Workflow when the Draft is ready, then verify a test run.

## Questions about this template

### Does the template copy someone else's credentials?

No. FastHook creates a disconnected Draft. Connect your own Mailhook, Google Drive accounts before activation.

### Can I change the Steps and mappings?

Yes. The copied Workflow is an editable Draft. Review every Step, input, mapping, and route before you activate it.

### What is copied into my workspace?

FastHook recreates the Trigger configuration, Action Steps, routes, and mappings with new IDs. Provider accounts, credentials, and secrets are never copied.

### When does the Workflow start running?

Only after you connect the required accounts, finish the configuration, and explicitly activate the Draft.

## Related integrations

- [Google Drive integrations](https://www.fasthook.io/apps/google-drive/integrations)

## Related workflow templates

- [Zip email attachments and save them to Google Drive](https://www.fasthook.io/templates/mailhook-zip-attachments-to-google-drive.md): Send attachments to your Mailhook address.
