Upload a file in a Drive folder.
type: "io.kestra.plugin.googleworkspace.drive.Upload"
Upload a csv and convert it to sheet format
id: googleworkspace_drive_upload
namespace: company.team
inputs:
- id: file
type: FILE
description: The file to be uploaded to Google Drive
tasks:
- id: upload
type: io.kestra.plugin.googleworkspace.drive.Upload
from: "{{ inputs.file }}"
parents:
- "1HuxzpLt1b0111MuKMgy8wAv-m9Myc1E_"
name: "My awesome CSV"
contentType: "text/csv"
mimeType: "application/vnd.google-apps.spreadsheet"
The content-type of the file.
a valid RFC2045 like text/csv
, application/msword
, ...
The file URI to copy
A short description of the file.
The file id to update
If not provided, it will create a new file
The MIME type of the file.
Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published here.
The name of the file
This is not necessarily unique within a folder
The destination path
The GCP scopes to used
The GCP service account key
ID of the Team Drive the file resides in.
The file metadata uploaded