Load a file to Google Drive.
Load the indicated file to Google Drive.
|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.|
To obtain the credentials, go to the section google.drive.list
Download the desired file of Google Drive.
<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>