UploadDocument
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 name 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. |
ParentIds | String | False | The Ids of the parent folders for the uploaded document. |
MIMEType | String | False | The MIME type of the file.
The default value is application/vnd.google-apps.spreadsheet. |
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 or Content are both not specified. |
FileData | String | False | If the LocalFile input is empty, the file data will be used in the format specified by the Encoding parameter. |
Content | String | True | If the LocalFile and FileData inputs are empty, Content will be used as an InputStream to read the file data. |
Encoding | String | False | The FileData input encoding type.
The allowed values are NONE, BASE64. The default value is BASE64. |
Result Set Columns
Name | Type | Description |
Id | String | The id of the file. |
Success | String | This parameter sets whether the operation was successful or not. |