Skip to content
Software capabilities

Google Drive capability

How to download an uploaded Google Drive file

Call Drive API v3 files.get with alt=media for stored files such as PDFs and images. In Drive, select Download for a manual copy.

Documentation reviewed

Ways to do it

API

Drive API v3 files.get with alt=media

Use the file ID and alt=media to retrieve a stored file’s bytes.

Requirements
An authorized Drive OAuth token with content access, such as drive.readonly, and permission to download the file.
Limitations
alt=media is for stored binary files. To convert a Google Docs, Sheets or Slides file to a portable format, use files.export.

Example

GET https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media
Read source: Drive files.get reference

Interface

Drive Download action

Right-click the file in Drive and select Download.

Requirements
Access to the file and permission to download it.
Limitations
The owner can disable downloads for users who have viewer or commenter access.
Read source: Google Drive download guide