Google file picker example breaks when you choose different view e.g. google.picker.ViewId.DOCS

StackOverflow https://stackoverflow.com/questions/20668612

Вопрос

I've gotten the google file picker example to work. The example uses the photos view and that works fine. But when I change the view to e.g. google.picker.ViewId.DOCS. Iget a javascript error;

Uncaught SyntaxError: Unexpected token ILLEGAL 

I'm using the correct scope (https://www.googleapis.com/auth/drive) according to the documentation. What am I doing wrong.

Нет правильного решения

Другие советы

The problem is I was cut-and-pasting the view name from the developers guide. Unfortunately, the view names in the guide all contained a hidden character, the ZERO WIDTH SPACE. The character didn't appear in my editor, but was screwing up the javascript interpreter. I only spotted it in the chrome debugger tools as a red dot in my code

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top