Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!