PutGoogleDrive 2025.10.9.21

Bundle

org.apache.nifi | nifi-gcp-nar

Description

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

Tags

drive, google, put, storage

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
chunked-upload-sizeDefines 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.
chunked-upload-thresholdThe maximum size of the content which is uploaded at once. FlowFiles larger than this threshold are uploaded in chunks.
conflict-resolution-strategyIndicates what should happen when a file with the same name already exists in the specified Google Drive folder.
connect-timeoutMaximum wait time for connection to Google Drive service.
file-nameThe name of the file to upload to the specified Google Drive folder.
folder-idThe ID of the shared folder. Please see Additional Details to set up access to Google Drive and obtain Folder ID.
gcp-credentials-provider-serviceThe Controller Service used to obtain Google Cloud Platform credentials.
proxy-configuration-serviceSpecifies the Proxy Configuration Controller Service to proxy network requests.
read-timeoutMaximum wait time for response from Google Drive service.

Relationships

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

Writes attributes

NameDescription
drive.idThe id of the file
filenameThe name of the file
mime.typeThe MIME type of the file
drive.sizeThe size of the file. Set to 0 when the file size is not available (e.g. externally stored files).
drive.size.availableIndicates if the file size is known / available
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.
drive.created.timeThe file’s creation time
drive.modified.timeThe file’s last modification time
error.codeThe error code returned by Google Drive
error.messageThe error message returned by Google Drive

See also