Skip to content
  • Home

  • Automation with Zapier

  • Zapier tutorials

Zapier tutorials

4 min read

How to automatically save Gmail attachments to a Google Drive folder

By Ellie Huizenga · April 30, 2025
The Gmail logo connected to the Google Drive logo by orange dotted lines on a light orange background.

Find it hard to track down email attachments? You're not alone. It can be challenging to find files attached to emails when you have a busy inbox. 

Simplify your file management process by using a Zap—Zapier's automated workflows—to automatically save your email attachments to your cloud storage app. Whenever you get a new email in Gmail with an attachment, automation can send it to a specific Google Drive folder for safekeeping. Here's how.

Note: This workflow requires a multi-step Zap, which are available on a paid plan or during a free trial.

Save new Gmail attachments to Google Drive automatically

If you'd like to start with a template, click the button below, and you'll be taken to the Zap editor. You'll need to create a Zapier account if you don't already have one. Then, follow the directions below to set up your Zap.

Save new Gmail attachments to Google Drive

Save new Gmail attachments to Google Drive
  • Gmail logo
  • Filter by Zapier logo
  • Google Drive logo
Gmail + Filter by Zapier + Google Drive

Set up your Gmail trigger

First, set up your trigger step—the event that starts your Zap. Search for and select Gmail for your trigger app and New Attachment for your trigger event. If you're using the Zap template, these will be selected for you. Next, sign in with your Gmail account, if you haven't already, then click Continue.

Image 1: Tutorial: How to save Gmail attachments to Google Drive automatically

Next, select which label or mailbox you'd like your Zap to trigger on. Keep Inbox and All Labels selected if you want every email you receive to be checked for attachments. Under Search String, keep -in:sent selected—this ensures you're only saving the email attachments you receive (not the ones you send yourself). Then click Continue.

Image 3: Tutorial: How to save Gmail attachments to Google Drive automatically

Now you need to test your trigger. Zapier will find a recent email in your Gmail account that matches the label or inbox you selected earlier. This will be used to set up the rest of your Zap.

Click Test trigger. You should see a selection of recent emails in your inbox. Select a test record, then click Continue with selected record.

Image 4: Tutorial: How to save Gmail attachments to Google Drive automatically

Set up your filter step

Now it's time to set up your filter step. This is the step that lets you get specific about which attachments you want to send to your Google Drive. 

Since you're using a Zap template, Filter by Zapier will already be selected as the action app in your first action step, so you'll just need to add the rules for when you want this Zap to run.

Do you want to save attachments from a specific email address? Select From Name.

Image 6: Tutorial: How to save Gmail attachments to Google Drive automatically

Do you want to save attachments with specific copy? Select (Text) Contains and then enter the copy you want the Zap to filter for.

Image 7: Tutorial: How to save Gmail attachments to Google Drive automatically

If you're just looking to save all the email attachments you receive, leave the Zap template as it is, with Attachment and Exists selected.

Image 8: Tutorial: How to save Gmail attachments to Google Drive automatically

Once you're done finalizing your filters, click Continue.

Set up your Google Drive action

Next, we'll customize the second action step. Select Google Drive for your action app and Upload File as your action event. These will be selected for you if you're using the Zap template. Then, connect your Google Drive account, if you haven't already, and click Continue.

Choose which Google Drive you want to use and which folder you want the Gmail attachments to save to.

Image 10: Tutorial: How to save Gmail attachments to Google Drive automatically

Keep the file as Attachment. This ensures your attachment gets uploaded as a file (instead of a .txt document). You can also choose if you want to also turn your attachment into an editable document. If you do, select True.

Image 12: Tutorial: How to save Gmail attachments to Google Drive automatically

Now it's time to specify the Title your attachment should save as. You can insert data from your Gmail step—such as the from name from your email—or write in your own title. To add in data from your previous step, just click on the + button in the File Name field and select the data you'd like to use from the modal.

Image 13: Tutorial: How to save Gmail attachments to Google Drive automatically

Click Continue. Now, it's time to test the action. Click Test step and Zapier will send the sample attachment to Google Drive. To make sure it worked, open Google Drive and look for the attachment in the folder you specified. Here's what ours looked like:

Image 14: Tutorial: How to save Gmail attachments to Google Drive automatically

If everything looks right, you're now ready to use your Zap.

Save attachments when you label an email

You can also set up a Zap that only saves attachments from emails with specific labels.

Save new attachments from labeled emails in Gmail to Google Drive

Save new attachments from labeled emails in Gmail to Google Drive
  • Gmail logo
  • Google Drive logo
Gmail + Google Drive

Before setting up your Zap, be sure that your Gmail labels are ready to go. If you're not sure how to create a new label (and want to), here's Gmail's help documentation to walk you through it. 

Once you've finalized your labels, jump into the Zap template. Follow the Gmail and Google Drive guidelines laid out above. You won't see a filter step in this Zap, and you'll select your mailbox label while setting up your trigger.

Image 16: Tutorial: How to save Gmail attachments to Google Drive automatically

How to save Gmail attachments to Google Drive manually

Did you know you can also save Gmail attachments to Google Drive manually? First, open the email with the attachment.

Image 17: Tutorial: How to save Gmail attachments to Google Drive automatically

Hover your mouse over the attachment, and you'll see two icons: a down arrow (for downloading) and a Google Drive icon. Click the Google Drive icon.

Image 18: Tutorial: How to save Gmail attachments to Google Drive automatically

You'll see a pop-up indicating that your attachment was saved to your Google Drive.

Image 19: Tutorial: How to save Gmail attachments to Google Drive automatically

Click Organize to quickly choose a folder for your attachment, or head over to Google Drive, and you'll see your attachment there.

Image 20: Tutorial: How to save Gmail attachments to Google Drive automatically

This article was originally written by Justin Pot in February 2019, with previous contributions by Ellie Huizenga. It was most recently updated in April 2025 by Khamosh Pathak.

Related reading:

  • How to automatically save client files in the right Google Drive folders

  • Popular ways to automate Gmail

  • How to automate Google Drive

  • How to automatically email files to Google Drive

  • How to transfer Google Drive ownership

  • Use Google Drive MCP to take action in your AI tools

Get productivity tips delivered straight to your inbox

We’ll email you 1-3 times per week—and never share your information.

tags
mentioned apps

Related articles

Improve your productivity automatically. Use Zapier to get your apps working together.

Sign up
See how Zapier works
A Zap with the trigger 'When I get a new lead from Facebook,' and the action 'Notify my team in Slack'