Tailflow
Skip to article
Browse documentation

Google Drive · Action

Upload file

Fetches the file at a public link and saves an exact copy of it in your Drive. Images, PDFs, spreadsheets and archives all work, up to 4 MB.

When to use it

Keeping a copy of a report, an image or a JSON document that another service publishes for each event.

At a glance

IntegrationGoogle Drive
Credits1
ConnectionGoogle Drive, by signing in

Settings

urlRequiredAccepts event fields
File link. A public web address. Any kind of file up to 4 MB, such as an image, a PDF or a CSV.
nameOptionalAccepts event fields
Name. Leave blank to use the last part of the link.
folder
Folder. Leave blank for the top of your Drive. Only folders made by Google Drive steps are listed. A folder id or link from a step above also works. Picked from your account's own list, or typed.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.drive_upload_file_1.id }} — the action’s key, then which one it is if you use more than one of the same kind.

id
The file's id. It is what Copy file and Share file take.
name
The file's name in Drive.
link
The address that opens the file in a browser.

Good to know

  • Files up to 4 MB are saved. A larger file fails the step and nothing is saved.
  • The file is saved exactly as it was fetched, whatever kind of file it is.
  • The link must be public. A link that needs a sign-in, or that points inside a private network, is refused.
  • The file keeps the type the link says it is. With no name set, it is named after the last part of the link.
  • Only folders made by Google Drive steps are listed. A folder id or link from a step above also works.