Skip to content

Instantly share code, notes, and snippets.

@simonecorsi
Last active June 27, 2018 12:34
Show Gist options
  • Save simonecorsi/f7e358fbab4d893440098640611104f2 to your computer and use it in GitHub Desktop.
Save simonecorsi/f7e358fbab4d893440098640611104f2 to your computer and use it in GitHub Desktop.
I'm tired.
const MimeTypes = {
documents: [
'application/pdf',
'application/msword',
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'application/vnd.ms-word.document.macroEnabled.12',
'application/vnd.ms-word.template.macroEnabled.12',
'application/vnd.ms-excel',
'application/vnd.ms-excel',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'application/vnd.ms-excel.sheet.macroEnabled.12',
'application/vnd.ms-excel.template.macroEnabled.12',
'application/vnd.ms-excel.addin.macroEnabled.12',
'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
'application/vnd.ms-powerpoint',
'application/vnd.ms-powerpoint',
'application/vnd.ms-powerpoint',
'application/vnd.ms-powerpoint',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.openxmlformats-officedocument.presentationml.template',
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'application/vnd.ms-powerpoint.addin.macroEnabled.12',
'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
'application/vnd.ms-powerpoint.template.macroEnabled.12',
'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
],
images: [
'image/bmp',
'image/gif',
'image/jpeg',
'image/jpg',
'image/png',
'image/svg+xml',
'image/x-icon',
'image/x-icon',
'image/tiff,',
'image/tiff,',
'image/vnd.wap.wbmp,',
'image/webp,',
'image/x-jng,',
],
videos: [
'video/3gpp',
'video/3gpp',
'video/mp4',
'video/mp4',
'video/mp4',
'video/mp4',
'video/mpeg',
'video/mpeg',
'video/ogg',
'video/quicktime',
'video/webm',
'video/x-flv',
'video/x-mng',
'video/x-ms-asf',
'video/x-ms-asf',
'video/x-ms-wmv',
'video/x-msvideo',
],
audios: [
'audio/midi',
'audio/midi',
'audio/midi',
'audio/mp4',
'audio/mp4',
'audio/mp4',
'audio/mp4',
'audio/mpeg',
'audio/ogg',
'audio/ogg',
'audio/ogg',
'audio/x-realaudio',
'audio/x-wav',
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment