yaml
type: "io.kestra.plugin.googleworkspace.drive.upload"
yaml
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"

yaml
id: upload_google_drive
namespace: company.team

tasks:
  - id: download
    type: io.kestra.plugin.core.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv

  - id: upload
    type: io.kestra.plugin.googleworkspace.drive.Upload
    from: "{{ outputs.download.uri }}"
    parents:
      - 15OENbAxvonlASDkYyfGBftV2c0fDTmnB
    name: Orders
    contentType: text/csv
    mimeType: application/vnd.google-apps.spreadsheet
Properties
SubType string
Default 120
SubType string
Default ["https://www.googleapis.com/auth/drive"]
Format date-time
SubType string