Categories

Versions

Write Google Drive (Cloud Connectivity)

Synopsis

This operator uploads the input file to Google Drive™.

Description

Before you can upload the input file to the Google Drive, you must load it with an Open file operator.

Ensure that the correct MIME type settings are selected, otherwise an error may occur! Setting the correct MIME types will help export Google Workspace documents which can't be downloaded directly.

Input

  • connection (Connection)

    This input port expects a Connection object if any. See the parameter connection entry for more information.

  • file (File)

    The file object which should be uploaded to Google Drive. The file must be provided by an Open file operator.

Output

  • connection (Connection)

    This output port delivers the Connection object from the input port. If the input port is not connected the port delivers nothing.

  • file (File)

    The input file object is passed through and returned here.

Parameters

  • file id Enter the path of the file to be stored on Google Drive, e.g. C:\my_file.xlsx. The parameter is not visible if the file input port is connected.
  • new name Enter the name of the file as it should be stored on Google Drive, e.g. my_new_file.xlsx. The parameter is optional and will use the file name from the File object if blank.
  • folder id Enter the folder id of the Google Drive folder where the file should be stored. The parameter is optional and RapidMiner will store the file at the root My Drive if blank.
  • mime type conversion This parameter is used to specify a Google Workspace document export MIME type operation. This will only be relevant if the file id is a Google Workspace document. Automatic will export to the corresponding MS office. e.g. Google Spreadsheets to MS Excel. None will download the selected file id as a blob without any export operation. This is the default option. For all options, the operator will guess the content type of the file based on the file extension e.g image/jpeg. Manual will allow you to specify the MIME type you would like to use for the export operation.
  • file id macro This parameter used to specify the name of the macro to store the file id of newly created file. The default value is new_file_id.