Skip to content

Instantly share code, notes, and snippets.

@ilkou
Created September 14, 2021 19:06
Show Gist options
  • Save ilkou/1531101bb040bcfae921f769eef64da3 to your computer and use it in GitHub Desktop.
Save ilkou/1531101bb040bcfae921f769eef64da3 to your computer and use it in GitHub Desktop.
File extensions and mime types
export const MIMES = [
{
Extension: 'doc',
mimeType: 'application/msword',
},
{
Extension: 'docm',
mimeType: 'application/vnd.ms-word.document.macroEnabled.12',
},
{
Extension: 'docx',
mimeType:
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
},
{
Extension: 'dotx',
mimeType:
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
},
{
Extension: 'dotm',
mimeType: 'application/vnd.ms-word.template.macroEnabled.12',
},
{
Extension: 'html',
mimeType: 'text/html',
},
{
Extension: 'pdf',
mimeType: 'application/pdf',
},
{
Extension: 'potm',
mimeType: 'application/vnd.ms-powerpoint.template.macroEnabled.12',
},
{
Extension: 'potx',
mimeType:
'application/vnd.openxmlformats-officedocument.presentationml.template',
},
{
Extension: 'ppam',
mimeType: 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
},
{
Extension: 'pps',
mimeType:
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
},
{
Extension: 'ppsx',
mimeType:
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
},
{
Extension: 'ppsm',
mimeType: 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
},
{
Extension: 'ppt',
mimeType: 'application/vnd.ms-powerpoint',
},
{
Extension: 'pptm',
mimeType: 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
},
{
Extension: 'pptx',
mimeType:
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
},
{
Extension: 'rtf',
mimeType: 'application/rtf',
},
{
Extension: 'rtf2',
mimeType: 'text/rtf',
},
{
Extension: 'txt',
mimeType: 'text/plain',
},
{
Extension: 'bmp',
mimeType: 'image/bmp',
},
{
Extension: 'gif',
mimeType: 'image/gif',
},
{
Extension: 'jpg',
mimeType: 'image/jpeg',
},
{
Extension: 'jpeg',
mimeType: 'image/jpeg',
},
{
Extension: 'png',
mimeType: 'image/png',
},
{
Extension: 'avro',
mimeType: ' ',
},
{
Extension: 'csv',
mimeType: 'text/csv',
},
{
Extension: 'csv1',
mimeType: 'application/csv',
},
{
Extension: 'json',
mimeType: 'application/json',
},
{
Extension: 'parquet',
mimeType: ' ',
},
{
Extension: 'parq',
mimeType: ' ',
},
{
Extension: 'txt',
mimeType: 'text/plain',
},
{
Extension: 'xlsx',
mimeType:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
},
{
Extension: 'xlsb',
mimeType: 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
},
{
Extension: 'xls',
mimeType: 'application/vnd.ms-excel',
},
{
Extension: 'xlsm',
mimeType: 'application/vnd.ms-excel.sheet.macroEnabled.12',
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment