Gmail logo
Google Drive logo

Workflow template

Save Gmail attachments to Google Drive

Save new Gmail attachments in Google Drive folders organized by sender and received date, then make each uploaded file readable by anyone with its link. Review this public-link sharing step before activation.

How it works

From an Inbox attachment to a shared Drive file

1 Trigger · 3 Actions
Gmail1 · Trigger

New Attachment Received

Poll received Inbox messages and emit one event for each non-inline attachment. Pending attachment backlogs can continue across later scheduled runs.

Google Drive2 · Action

Create sender/date folder

Find or create Gmail attachments/{sender folder}/{received date} using the normalized sender folder and received date supplied by the Gmail trigger.

Google Drive3 · Action

Upload attachment

Upload the trigger’s File into the folder returned by the previous step, retaining the attachment’s file content.

Google Drive4 · Action

Share uploaded file

Add an anyone permission with reader access to the uploaded file. Anyone who obtains its link can read it; no individual recipient address is selected.

The result

A sender/date archive with public-link access

The workflow uploads each eligible attachment and changes that file’s access. It does not send a Telegram notification or copy the email body into the file.

Illustrative Drive attachment result

Gmail attachments/ billing@example.com/ 2026-09-14/ invoice-example.txt File access: anyone with the link Role: reader

Fictional attachment and folder. The prepared sharing step makes the uploaded file readable beyond the Gmail mailbox and Drive account. Change or remove that step if your archive should stay private.

Before activation

Set up your workflow

  1. Connect Gmail and narrow attachment selection

    Connect the mailbox that receives the files. Review the trigger’s search and label filters before activation. It handles non-inline Inbox attachments, with a separate event for each attachment in a message.

  2. Review the Drive folder and sharing step

    Select your Drive connection for the folder, upload and sharing actions. Review the sender/date path and the anyone/reader permission in Share uploaded file. Change or remove public-link sharing before activation if it is not appropriate for these attachments.

  3. Start with a fictional attachment

    Activate only after reviewing selection and sharing. Send a fictional attachment to the mailbox, allow the scheduled poll to run, then inspect its destination folder, uploaded content and file permission.

Details and limitations
  • Public-link sharing is part of the recipe. The final action grants anyone reader access to each uploaded file. Keeping the parent folder private does not undo that file permission. Google Workspace sharing policies can reject the permission change.

  • One event per non-inline attachment. A message with several eligible attachments can run the workflow several times. Inline images are excluded, and pending attachment backlogs can span multiple polls. This is not an email-body archive.

  • Uploads and sharing are separate actions. An uploaded file can remain if the later sharing step fails. The prepared workflow has no explicit existing-file lookup or cleanup step; reruns can upload another copy. Folder lookup reuses an existing path where available.

Questions about this template

Are the uploaded attachments private by default?

No. The prepared Share uploaded file action grants anyone with the link reader access. Review, change or remove that step before activation if the files must stay private.

How are files organized in Drive?

The folder path is Gmail attachments/{sender folder}/{received date}. The trigger supplies normalized sender and date values, and the folder action reuses an existing path or creates missing folders.

Will an email with three attachments create one workflow run?

The trigger emits one event per non-inline attachment, so three eligible attachments can produce three runs. Inline images are excluded.

What happens if Google Drive refuses public sharing?

The sharing action can fail under your account’s policies. The earlier upload can still remain in Drive because uploading and sharing are separate actions.