TDV Adapter for Google Drive

Build 22.0.8462

UploadFile

Uploads a file to the user's Google Drive.

Input

Name Type Accepts Input Streams Description
Id String False The id for the file. Only needs to be set when updating an existing document.
Name String False The title for the file, including the extension.
Description String False The description for the file.
Starred Boolean False This parameter sets whether or not the resource is starred.

The default value is FALSE.

Trashed Boolean False This field sets whether or not the resource has been moved to the trash.

The default value is FALSE.

Viewed Boolean False This field sets whether or not the resource has been viewed by the current user.

The default value is FALSE.

MIMEType String False This parameter explicitly sets the MIME type for the document. If left empty, it will be determined automatically.
ParentIds String False The comma-separated Ids of the parent folders for the uploaded document.
LocalFile String False The local file path including the file name of the file to be uploaded. A value for this field is required when FileData is not specified.
FileData String False If the LocalFile input is empty, the file data will be output to a file in the format specified by the Encoding parameter.
Encoding String False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

Content String True The content as InputStream to be uploaded when LocalFilePath or FolderPath is not specified.
CopyRequiresWriterPermission Boolean False Whether the options to copy, print, or download this file, should be disabled for readers and commenters.

The default value is FALSE.

Result Set Columns

Name Type Description
Id String The id for the file which was uploaded or updated.
Success String This parameter sets whether the operation was successful or not.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462