UploadFile Method
Uploads a new file.
Object Oriented Interface
public function doUploadFile($filetitle);
Procedural Interface
ingoogle_gdrive_do_uploadfile($res, $filetitle);
Remarks
This method uploads a new file.
. If LocalFile is set the file will be uploaded from the specified path. If LocalFile is not set the data in ResourceData will be used.
The title specified by the FileTitle parameter should include a file extension.
Before calling this method set ResourceIndex to -1 to clear the existing selection. The follow properties may also optionally be set:
- ConvertDocument
- ResourceDescription
- ResourceRestricted
- ResourceStarred
- ResourceTrashed
- ResourceViewed
- ResourceMIMEType
- ResourceModifiedDate
- ResourceParents
- ResourceTitle
This method returns the Id of the newly created file.