Skip to content

Instantly share code, notes, and snippets.

@bogdanRada
Forked from javan/google-drive-mime-types.md
Created August 13, 2021 10:18
Show Gist options
  • Select an option

  • Save bogdanRada/b03b93781caad5cb2bfb27327743b2f5 to your computer and use it in GitHub Desktop.

Select an option

Save bogdanRada/b03b93781caad5cb2bfb27327743b2f5 to your computer and use it in GitHub Desktop.
Google Drive's undocumented MIME types

The Google Drive API supports these MIME types, but if you try to filter using them, you may find you're not getting the document types back that you expect. Especially when using setMimeTypes() with Google's JavaScript Picker.

Here are the poorly documented or completely undocumented MIME types I discovered:

If you want application/vnd.google-apps.document, also use application/vnd.google-apps.kix. Source.

If you want application/vnd.google-apps.spreadsheet, also use application/vnd.google-apps.ritz. Via a private email from a Google employee.

If you want application/vnd.google-apps.presentation, also use application/vnd.google-apps.punch. Source.

If you want application/vnd.google-apps.form, also use application/vnd.google-apps.freebird. Discovered by inspecting a "form" file: mimeType: "application/vnd.google-apps.freebird", name: "Reform", serviceId: "docs".

Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment