Uploading files to Google Drive - 7.0

Google Drive

EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > Cloud storages > Google Drive components
Data Quality and Preparation > Third-party systems > Cloud storages > Google Drive components
Design and Development > Third-party systems > Cloud storages > Google Drive components

Procedure

  1. Double-click the first tGoogleDrivePut component to open its Basic settings view in the Component tab.
  2. Select the component that will create the Google Drive connection from the Connection Component drop-down list, tGoogleDriveConnection_1 in this example.
  3. Select by Name from the Access Method drop-down list and in the Destination Folder field, enter the name of the folder in which the file will be uploaded, Talend in this example.
    Note: When accessing a Google Drive resource by its name, if the name matches more than one resource, an error will be thrown because the resource cannot be identified precisely. In this case, you can specify the Google Drive resource using a pseudo path hierarchy, like /Talend/Documentation. This example specifies a folder named Documentation under the folder Talend under the Google Drive root folder.
  4. In the File Name field, enter the name for the file after being uploaded. In this example, it is Talend Customers.csv.
  5. Select Upload Local File from the Upload Mode drop-down list and in the File field, browse to or enter the path to the file to be uploaded. In this example, it is D:/Downloads/Talend Customers.csv.
  6. Double-click the tFileInputRaw component and on its Basic settings view, select Read the file as a bytes array in the Mode area and specify the path to the file whose content will be uploaded in the Filename field, D:/Downloads/Talend Products.txt in this example.
  7. Double-click the second tGoogleDrivePut component to open its Basic settings view in the Component tab.
  8. Repeat step 2 to step 3 to configure this component.
  9. In the File Name field, enter the name for the file after being uploaded. In this example, it is Talend Products.txt.
  10. Select Upload Incoming content as File from the Upload Mode drop-down list.