Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show only personal folders in google-picker? #76

Open
rkushnirm opened this issue Dec 19, 2024 · 0 comments
Open

How to show only personal folders in google-picker? #76

rkushnirm opened this issue Dec 19, 2024 · 0 comments

Comments

@rkushnirm
Copy link

rkushnirm commented Dec 19, 2024

I tried to show only personal folders in picker, but it still shows all folders including shared folders:

openPicker({
      clientId: VITE_GOOGLE_CLOUD_CLIENT_ID,
      developerKey: VITE_GOOGLE_PICKER_API_KEY,
      viewId: 'FOLDERS',
      token: authResponse?.access_token,
      supportDrives: false,
      // viewMimeTypes: 'application/vnd.google-apps.folder',
      setSelectFolderEnabled: true,
      setIncludeFolders: false,
      // customScopes: ['https://www.googleapis.com/auth/drive'],
      // customViews: ['https://www.googleapis.com/auth/drive'],
      customViews: [
        {
          id: 'foldersOnly',
          label: 'My Folders',
          mimeTypes: ['application/vnd.google-apps.folder'],
          query: 'visibility:limited',
        },
      ],
      callbackFunction: (data) => {},
    });
  };

Is it possible to fix it somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant