# Google Drive action - Download file

This action downloads the content of a file in Google Drive. You can use downloaded content in subsequent steps of the recipe, such as uploading the content into other applications.

Note that only binary files can be downloaded. Folder or Google Docs download attempts result in an error. You must use a custom export API action to export binary files to csv or xlsx file formats.

# Input fields

Field name Description
File ID The ID of the file. The File ID can be found in the output of other Google Drive trigger/actions, or in the file's shareable link. To get the shareable link, right-click the file and select Get shareable link. For example, if the shareable link is https://drive.google.com/file/d/1y1nxL1248oiyR2IjW_Rq84d3qEPYRoqh/view?usp=sharing (opens new window) , the file ID is 1y1nxL1248oiyR2IjW_Rq84d3qEPYRoqh.

# Output fields

Field name Description
File contents The full content of the file. This is a streaming object. You can use file content in the Upload file actions of other connectors, such as Box, Dropbox, Amazon S3, and more to upload the file content into those applications.
Size Size of the file in bytes.


Last updated: 9/28/2023, 5:52:48 PM