Google Drive mime-types listing?

I found a complete list of file extensions and mime types from Google itself in GitHub:

google-drive-proxy / DriveProxy / API / MimeType.cs


From Drive REST API reference:

Maximum file size: 5120GB

Accepted Media MIME types: */*

In other words, you can use any mime type that matches the pattern */*.

Here is the IANA list of official media types. You can learn more about media types here.


https://developers.google.com/drive/integrate-open Here you can find the official listing of gdrive mimetypes.


Sorry it isn't listed in the documentation. It is easy, though, you can store any MIME type in Google Drive with files up to 5TB in size.


$mime_types= array(
    "xls" =>'application/vnd.ms-excel',
    "xlsx" =>'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
    "xml" =>'text/xml',
    "ods"=>'application/vnd.oasis.opendocument.spreadsheet',
    "csv"=>'text/plain',
    "tmpl"=>'text/plain',
    "pdf"=> 'application/pdf',
    "php"=>'application/x-httpd-php',
    "jpg"=>'image/jpeg',
    "png"=>'image/png',
    "gif"=>'image/gif',
    "bmp"=>'image/bmp',
    "txt"=>'text/plain',
    "doc"=>'application/msword',
    "js"=>'text/js',
    "swf"=>'application/x-shockwave-flash',
    "mp3"=>'audio/mpeg',
    "zip"=>'application/zip',
    "rar"=>'application/rar',
    "tar"=>'application/tar',
    "arj"=>'application/arj',
    "cab"=>'application/cab',
    "html"=>'text/html',
    "htm"=>'text/html',
    "default"=>'application/octet-stream',
    "folder"=>'application/vnd.google-apps.folder'
);

In addition, here is a list of mime-types specifically pertaining to Google drive (and the google suite): https://developers.google.com/drive/v3/web/mime-types