Google Docs File Stream

Setup Google Drive File Stream. If your Windows or Mac laptop has low storage and you are a power user of Google Drive, I will strongly recommend giving a shot to Drive File Stream. How to Work with Microsoft Office Files on Google Drive on a PC or Mac. Let’s start with the desktop. If the Office file you want to edit and share is still on your PC’s hard drive, you can easily upload it to Google Drive and open it for editing in Chrome using a Chrome extension.

Note:StreamAuthorization optional.

Gets a file's metadata or content by ID.Try it now or see an example.

If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export instead. For further information on downloading files, refer to Download files.

Request

HTTP request

Google Docs File Stream

Parameters

Parameter nameValueDescription
Path parameters
fileIdstring The ID for the file in question.
Optional query parameters
acknowledgeAbuseboolean Whether the user is acknowledging the risk of downloading known malware or other abusive files. (Default: false)
includePermissionsForViewstring Specifies which additional view's permissions to include in the response. Only 'published' is supported.
projectionstringWarning: This item is deprecated. This parameter is deprecated and has no function.
Acceptable values are:
  • 'BASIC': Deprecated
  • 'FULL': Deprecated
revisionIdstring Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
supportsAllDrivesboolean Whether the requesting application supports both My Drives and shared drives. (Default: false)
supportsTeamDrivesbooleanWarning: This item is deprecated. Deprecated use supportsAllDrives instead. (Default: false)
updateViewedDatebooleanWarning: This item is deprecated. Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body. (Default: false)

Authorization

This request allows authorization with at least one of the following scopes:

Scope
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.photos.readonly

Some scopes are restricted and require a security assessment for your app to use them. For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.

Response

By default, this responds with a Files resource in the response body. If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export instead. For further information on downloading files, refer to Download files.

Examples

Note: The code examples available for this method do not represent all supported programming languages (see the client libraries page for a list of supported languages).

Java

Docs

Uses the Java client library.

.NET

Uses the .NET client library.

PHP

File

Uses the PHP client library.

Python

Doc Files

Uses the Python client library.

JavaScript

Uses the JavaScript client library.

Go

Uses the Go client library.

Objective-C

Uses the Objective-C client library.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

© tommaso79/Getty Images To sync files automatically, add the Google Drive app to your desktop. tommaso79/Getty Images
  • You can add Google Drive to your desktop on a PC in addition to using it on a web browser.
  • Adding the Google Drive app to your desktop will enable you to sync your documents and files from your computer to Google Drive.

Google Drive is popular for its free programs, ease of access, and compatibility with Gmail and other Google products.

You can download Google Drive to your PC desktop as well, enabling your computer to sync your files with Google Drive automatically.

Here's how to add Google Drive to your desktop using a PC.

Check out the products mentioned in this article:

Google Docs File Stream App

Acer Chromebook 15 (From $179.99 at Walmart)

How to add Google Drive to your PC desktop

1. If you are logged in to your Google account on an internet browser, you must log out temporarily to install Google on your desktop.

2. Once you have logged out, go to drive.google.com and scroll down to the bottom of the webpage. Under the 'Downloads' column, click on 'Drive for Mac/PC.'

© Chrissy Montelli/Business Insider In 'Downloads,' select 'Drive for Mac/PC.' Chrissy Montelli/Business InsiderGoogle docs file stream freeOpen a google doc

3. A new tab will open. Next to the 'For Individuals' banner, click on 'Download.'

© Chrissy Montelli/Business Insider In 'For Individuals,' select 'Download.' Chrissy Montelli/Business Insider

4. A pop-up window will appear. Click the 'Agree and Download' button.

Microsoft Stream Docs

© Chrissy Montelli/Business Insider Select 'Agree and Download.' Chrissy Montelli/Business Insider

5. A program called 'installbackupandsync.exe' will begin downloading in your internet browser.

© Chrissy Montelli/Business Insider 'Backup and Sync' will download. Chrissy Montelli/Business Insider

6. Click on the program, and it should begin installing once it has finished downloading.

© Chrissy Montelli/Business Insider It will then install. Chrissy Montelli/Business Insider

7. Once the installation is complete, click 'Close' to exit the pop-up window.

8. Google Drive should now appear on your desktop. Look for a window called 'Welcome to Backup and Sync' and click on the 'Get Started' button.

© Chrissy Montelli/Business Insider Click 'Get Started.' Chrissy Montelli/Business Insider

9. Type in your Gmail address, click 'Next,' and then type in your Gmail password. Click 'Next' when you are finished.

10. Set your laptop's preferences for upload quality and file size. When you are finished, click 'Next.'

© Chrissy Montelli/Business Insider To sync files automatically, add the Google Drive app to your desktop. tommaso79/Getty Images

11. Set your Google Drive syncing preferences. You can sync the entirety of your computer to Google Drive, or select specific folders to sync. Once you are finished, click 'Start.'

Google Docs To Word

© Chrissy Montelli/Business Insider Choose which folders you'd like to sync. Chrissy Montelli/Business Insider

After Google Drive is downloaded to your desktop, you will also see shortcuts to Drive programs such as Google Docs, Google Sheets, and Google Slides.

Related coverage from Tech Reference: