Uploading Images on Google Drive from IOS Application -
i working ios application ,in have upload images on google drive .i able upload images on gdrive
,but first want create folder , upload selected images in folder. how create album folder , insert images in folder. please searched everywhere,but not getting solution. please me out.
warning, none of code below not typed in ide. moving in right direction :)
first, create empty folder this:
gtldrivefile *folderobj = [gtldrivefile object]; folderobj.title = foldername; folderobj.mimetype = @"application/vnd.google-apps.folder"; gtlquerydrive *query = [gtlquerydrive queryforfilesinsertwithobject:folderobj uploadparameters:nil];
then, when inserting file, want add id of new folder parent references using similar to:
gtldriveparentreference *parentref = [gtldriveparentreference object]; parentref.identifier = thefoldersid; fileobj.parents = [nsarray arraywithobject:parentref];
Comments
Post a Comment