Apps Developer Blog

Information for Google Apps Developers

Using the Google Picker to upload files to Drive

June 11, 2012
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Drive SDK

9 comments :

Bog Imp said...

How i can setup Upload Folder destination if i have Folder ID?

June 11, 2012 at 4:48 PM
Claudio Cherubino said...

You can use DocsUploadView.setIncludeFolders(true) to allow users to select a folder, but you can't programmatically set a folder to upload files to:

https://developers.google.com/picker/docs/reference#DocsUploadView

June 11, 2012 at 4:52 PM
Bog Imp said...

Oh, it's bad... but i can move files to my folder after upload.

Also it's possible to show all files from folder for pick?
?? setQuery(string)

June 11, 2012 at 5:04 PM
Claudio Cherubino said...

Please check the documentation for all available settings:

https://developers.google.com/picker/docs/

June 11, 2012 at 5:12 PM
Jason Kirkland said...

Could you help me find more info about the "PickerBuilder.setAuthUser(string)" method?

The documentation says:
"Specify an email address, domain name, or a Google profile ID to use as the authenticated user. The user must already be logged into this account."

What does "domain name" mean?

Thanks Claudio,
Jason Kirkland
City of Lewisville, Texas

June 11, 2012 at 6:41 PM
Claudio Cherubino said...

Not sure about that option, try asking the same question in the Picker API forum:

https://groups.google.com/group/Google-Picker-API

June 11, 2012 at 7:45 PM
Nicolas said...

Hey Jason,

the setAuthUser(string) function allows you to specifies which account will be used by the picker in case the user is multi-logged-in.

As you may know users can be logged simultaneously in multiple Google accounts and this method should be used to avoid the picker using the wrong account. You can pass it the user's email or the user's ID both of which you get using the userInfo API (which you can get access at the same time as the Drive API using OAuth 2.0 for instance).

You can also pass it a domain name that will be useful only if one of the account that the user is multi-logged-in with is a Google apps domain. So if you are logged with both [email protected] and [email protected] then using setAuthUser('mydomain.com') will make sure the second account is used. But in any case it's safer to pass the full email address or the User ID.

PS: In the future it;s better and more convenient that you ask these types of questions on StackOverflow, we monitor the drive-sdk tag every day!

Cheers!

June 12, 2012 at 10:56 AM
Carlos Vigo said...

It does not support versioning of existing files...

June 12, 2012 at 11:09 PM
lll said...

Hello, excuse me, I am developing an application with google search's appi
could you help me, could you tell me where can search or could you tell me whom can I ask it.

Thank's, I'll waiting for you answer.

June 18, 2012 at 6:25 PM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms