Load a file to Google Drive.
1 google.drive.upload
Load the indicated file to Google Drive.
<google.drive.upload
credentials-json='credentials-json'
credentials-path='credentials-path'
file-name='file-name'
file-type='file-type'
folder-id='folder-id'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acredentials-json | string | String of the JSON of the credentials provided by Google Drive. It is not required if the attribute credentials-path exists. | |||
Acredentials-path | string | Directory of the file JSON of the credentials provided by Google Drive. It is not required if the attribute credentials-json exists. | |||
Afile-name | string | Name of the folrder which you want to store. If yo do not enter any name, it will be stored with the name of origin. | |||
Afile-type | string | Type of file which you want to store. More information about types of files, aquí | |||
Afolder-id | string | String of the directory ID where you want to store the file. f yo do not enter anything, the folder will be created in the root directory. |
Obtener credenciales
To obtain the credentials, go to the section google.drive.list
Example
Download the desired file of Google Drive.
Copy
<xsql-script name=''> <body> <google.drive.upload credentials-path="/Users/afp/Desktop/clientsecret.json" file-name="Example" file-type="application/json" folder-id="0B_kCxfwKVMTLYjJ5Mm5CbmthaWc" > <file name='/Users/afp/Desktop/clientsecret.json' type='absolute' /> </google.drive.upload> </body> </xsql-script>