JDBC Driver for Google Drive

Build 25.0.9434

UploadFile

Adds a new file to Drive from a local or remote source, with support for specifying Multipurpose Internet Mail Extensions (MIME) type and folder location.

Input

Name Type Accepts Input Streams Description
Id String False The unique identifier for the file. Required only if you are updating an existing document rather than uploading a new one.
Name String False The title of the file being uploaded, including its extension (for example, report.pdf).
Description String False A brief user-defined summary describing the purpose or content of the uploaded file.
Starred Boolean False If the value is 'true', the uploaded file will be marked as starred in Google Drive.
MIMEType String False The MIME type of the file. If not provided, it will be detected automatically based on the file content or extension.
ParentIds String False The unique ID of the parent folder that will contain the uploaded file. If omitted, the file is uploaded to the root directory.
LocalFile String False The full path, including the file name, of the local file to be uploaded. This is required if FileData is not specified.
FileData String False The file's content in encoded form. Used as an alternative to LocalFile. The encoding type must match the Encoding parameter.
Encoding String False Specifies the encoding format of the FileData input, such as base64. The default value is BASE64.
Content String True An InputStream that provides the file content for upload. Used when LocalFile or FolderPath is not provided.
CopyRequiresWriterPermission Boolean False If the value is 'true', users with viewer or commenter roles will be prevented from copying, printing, or downloading the file.

Result Set Columns

Name Type Description
Id String The unique identifier assigned to the uploaded or updated file in Google Drive.
Success Boolean If the value is 'true', the file upload or update was completed successfully. If 'false', an error occurred.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434