Hey everyone! I’m trying to figure out the MIME types for different Google Workspace file formats. Specifically, I’m looking for the ones used in Google Docs, Sheets, Slides, and Drawings. Does anyone know what MIME types are associated with files that have these extensions:
- .gdoc
- .gslide
- .gsheet
- .gdraw
I’ve been searching online but haven’t found a clear answer. It would be super helpful if someone could share this info or point me in the right direction. Thanks in advance for any help!
hey there! i kno this one. those files r actually just json with metadata, not the real docs. if ur working locally, treat em as application/json. but for google’s api stuff, use the special mime types like application/vnd.google-apps.document for gdocs. hope that helps!
Based on extensive experience with Google Workspace, I can explain that the MIME types for Workspace formats are straightforward. For Google Docs (.gdoc) the MIME type is application/vnd.google-apps.document; for Google Sheets (.gsheet) it is application/vnd.google-apps.spreadsheet; for Google Slides (.gslide) you need application/vnd.google-apps.presentation; and for Google Drawings (.gdraw) it is application/vnd.google-apps.drawing.
These MIME types are essential when working with the Google Drive API or handling file conversions, and they differ from the MIME types of exported file formats such as PDF or Microsoft Office versions. I trust this explanation will help with your project or integration tasks.
I’ve worked extensively with Google Workspace APIs, and I can confirm the MIME types mentioned by JackWolf69 are correct. However, it’s worth noting that these MIME types are primarily used internally by Google and when interacting with their APIs. In practice, when you’re dealing with downloaded .gdoc, .gsheet, .gslide, or .gdraw files, they’re actually just JSON files containing metadata about the Google Workspace document.
If you’re building an application that interacts with these files locally, you might want to treat them as application/json. The actual content of the document isn’t stored in these files - they’re more like pointers to the online versions. This can be a bit confusing when you’re first working with Google Workspace files, but understanding this distinction can save you a lot of headaches down the line.