Monday, June 11, 2012 | 3:38 PM
Labels: Drive SDK
Another powerful use case for the Picker API is to allow users to upload files to Drive with the same consistent UI. A single Picker dialog can incorporate multiple views and users can switch from one to another by clicking on a tab on the left:
The following code sample opens the Picker dialog and registers a simple callback function to handle the completed upload event:
There is an important difference between this upload example and the code used to open files: in addition to the standard view, an instance of
DocsUploadView is added to the Picker object, thus providing upload capability.
For more information about this component and all other available views, please refer to the Google Picker Reference Guide.
|Claudio Cherubino profile | twitter | blog
Claudio is an engineer in the Google Drive Developer Relations team. Prior to Google, he worked as software developer, technology evangelist, community manager, consultant, technical translator and has contributed to many open-source projects. His current interests include Google APIs, new technologies and coffee.