Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

156
Vistas
How to show both folders and JSON files in Google Drive Picker?

I want to have a Google picker dialog that is showing folders and JSON files. I'm using "react-google-drive-picker" package. It has a method named openPicker that we can pass the target mime type to it as an argument and see all files with this type.

openPicker({
  clientId: CLIENT_ID,
  developerKey: API_KEY,
  setIncludeFolders: true,
  setSelectFolderEnabled: true,
  viewMimeTypes: "application/vnd.google-apps.folder and application/json",
});

I know the mimeType of folders is application/vnd.google-apps.folder and the mimeType of JSON files is `application/json in Google drive API.

But I don't how should I mix these 2 mimeTypes to show both folders and JSONs in my picker.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use comma to set multiple MIME types. e.g.

viewMimeTypes: "application/vnd.google-apps.folder,application/json",

docs

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda