Questions tagged [google-picker]

Google Picker is a "File Open" dialog for the information stored in Google servers.

Google Picker is a "File Open" dialog for the information stored in Google servers.

With Google Picker, users can select photos, videos, maps, and documents stored in Google servers. The selection is passed back to the web page or web application for further use.

Using the Picker is an alternative to integration with the Drive UI, for applications that use the limited permission drive.file OAuth scope and need to access explicitly-selected, existing files in users' Google Drive.

enter image description here

Related Information:

316 questions
34
votes
4 answers

Google API error, but still works

Im getting this console error on my localhost when connecting to google drive API, but the picker I have configured in my script successfully displays my drive's contents: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided…
redress
  • 1,399
  • 4
  • 20
  • 34
28
votes
4 answers

Google Drive Picker - Developer Key is Invalid Error

I started to learn Google Drive Picker API and started with my localhost (I have created my client id and browser key for the domain http://localhost/ and my files locations are localhost/ch1.html etc. Here's the script I wrote in the body part of…
Harshit Laddha
  • 2,044
  • 8
  • 34
  • 64
15
votes
5 answers

How to pass a parameter to html?

I have a script that uses the file picker but I need to pass a specific parameter which is called userId and is kept as a global variable in the calling script. As the calls are asynchronous it seems I cannot access this parameter. Is there a way to…
13
votes
1 answer

Google drive picker error

I am getting following error while accessing google drive picker, however the picker shows up properly without any error. Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the…
codeomnitrix
  • 4,179
  • 19
  • 66
  • 102
12
votes
2 answers

Google Picker API Invalid origin value error

Today Google Picker stopped working in my Google Sheets add-on without any changes to the code. The error in the modal dialogue reads: Invalid origin value. The errors in console are: Failed to execute 'postMessage' on 'DOMWindow': The target…
12
votes
2 answers

Change Google Picker DocsView Title

I am using Google Picker API on my website. This is my code: this.picker = new google.picker.PickerBuilder(). addView(new google.picker.DocsView(google.picker.ViewId.DOCS). setIncludeFolders(true). …
Aldeguer
  • 821
  • 9
  • 32
12
votes
3 answers

How do I use Google Picker to access files using the "drive.file" scope?

My Google Drive-integrated web application works fine with the drive scope, but using such a broad scope is bad practice unless necessary. I would like to restrict the scope to drive.file so that I can only access files created by the application…
Jakob
  • 2,588
  • 5
  • 27
  • 34
10
votes
4 answers

Show google picker inside/over modal

Is there a way to show the google drive picker to be shown inside a custom modal or a div? I have a modal where there will be multiple providers user can choose e.g. google, dropbox. That modal contains all the js and css files in it. So when I…
Aamir Rind
  • 38,793
  • 23
  • 126
  • 164
10
votes
1 answer

Google picker and backend file download

I'm using google picker in my web app to allow user to browse and select files from his google drive. Once he makes the selection, picker returns various data about selected files, including file ID and URL. My goal is to download the selected files…
Pavle Predic
  • 5,790
  • 3
  • 17
  • 17
9
votes
8 answers

How to set text in GMSAutocompleteViewController in Google Place AutocompleteViewController

I need help to set text in searchBar of GMSAutocompleteViewController when open in my App. I am using GMSAutocompleteViewController in Google Place AutocompleteViewController.
8
votes
1 answer

The API developer key is invalid when viewing file in google picker

I want to view all files in google picker for that i am following this link: https://developers.google.com/picker/docs/ but it returns The API developer key is invalid. My code is as follows but that key is working properly in other…
user3653474
  • 3,393
  • 6
  • 49
  • 135
8
votes
1 answer

How can I use 'Google Picker' from many JavaScript origins (subdomains and mapped-domains)

I'm trying to add Google Drive file picker to my web app. My app uses many subdomains (one for each customer account), and some CNAME domain mapping as well. Since 'Google Developers Console' limits me to specific 'JavaScript Origins' (no wildcard…
7
votes
2 answers

Google Drive Picker: pick root folder

I need to allow user to select which Google Drive folder to upload their files. I am using this code now: view = new google.picker.DocsView(google.picker.ViewId.FOLDERS). setParent('root'). setSelectFolderEnabled(true) picker = new…
Bryan Chen
  • 45,816
  • 18
  • 112
  • 143
7
votes
3 answers

What is the right way to put a Drive image into a Sheets cell programmatically?

I have a WebApp that collects work site data into a Google Sheets spreadsheet and also collects work site photos into a Google Drive folder that I create for each job. Some, but not all, of the photos must be viewable in a cell in Google Sheets,…
7
votes
1 answer

Can Google Drive transfer files from Docs to Picasa?

I see you can use Google Picker to open Web Albums, but can you transfer from Drive to Picasa directly?
Sonicthoughts
  • 548
  • 1
  • 4
  • 16
1
2 3
21 22