

If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Responseīy default, this responds with a Files resource in the response body. Request bodyĭo not supply a request body with this method. For more information, see the authentication and authorization page. Some scopes are restricted and require a security assessment for your app to use them.

This request allows authorization with at least one of the following scopes: Scope Whether the requesting application supports both My Drives and shared drives.ĭeprecated use supportsAllDrives instead.ĭeprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body. Specifies the Revision ID that should be downloaded. This parameter is deprecated and has no function. Specifies which additional view's permissions to include in the response. Whether the user is acknowledging the risk of downloading known malware or other abusive files.Ī comma-separated list of IDs of labels to include in the labelInfo part of the response. Request HTTP request GET fileId Parameters Parameter name For further information on downloading files, refer to Download files. To download Google Docs, Sheets, and Slides use files.export instead. Downloading content with alt=media only works if the file is stored in Drive.

