Writes the contents of a FlowFile as a file in Google Drive.

Additional Details...


google, drive, storage, put


In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
GCP Credentials Provider Servicegcp-credentials-provider-serviceController Service API:
Implementation: GCPCredentialsControllerService
The Controller Service used to obtain Google Cloud Platform credentials.
Folder IDfolder-idThe ID of the shared folder. Please see Additional Details to set up access to Google Drive and obtain Folder ID.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Filenamefile-name${filename}The name of the file to upload to the specified Google Drive folder.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Conflict Resolution Strategyconflict-resolution-strategyfail
  • fail Handle file conflict as failure.
  • ignore Ignore conflict, do not change the original file.
  • replace Replace existing file in case of conflict.
Indicates what should happen when a file with the same name already exists in the specified Google Drive folder.
Chunked Upload Thresholdchunked-upload-threshold100 MBThe maximum size of the content which is uploaded at once. FlowFiles larger than this threshold are uploaded in chunks.
Chunked Upload Sizechunked-upload-size10 MBDefines the size of a chunk. Used when a FlowFile's size exceeds 'Chunked Upload Threshold' and content is uploaded in smaller chunks. Minimum allowed chunk size is 256 KB, maximum allowed chunk size is 1 GB.
Proxy Configuration Serviceproxy-configuration-serviceController Service API:
Implementation: StandardProxyConfigurationService
Specifies the Proxy Configuration Controller Service to proxy network requests. Supported proxies: HTTP + AuthN


successFiles that have been successfully written to Google Drive are transferred to this relationship.
failureFiles that could not be written to Google Drive for some reason are transferred to this relationship.

Reads Attributes:

filenameUses the FlowFile's filename as the filename for the Google Drive object.

Writes Attributes:

drive.idThe id of the file
filenameThe name of the file
mime.typeThe MIME type of the file
drive.sizeThe size of the file
drive.timestampThe last modified time or created time (whichever is greater) of the file. The reason for this is that the original modified date of a file is preserved when uploaded to Google Drive. 'Created time' takes the time when the upload occurs. However uploaded files can still be modified later.
error.codeThe error code returned by Google Drive
error.messageThe error message returned by Google Drive

State management:

This component does not store state.


This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.

See Also:

ListGoogleDrive, FetchGoogleDrive