Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: update mime types
  • Loading branch information
broofa committed Apr 3, 2025
commit f0263cb9e50de31c58abe0fbb8c8fde21beb71aa
19 changes: 18 additions & 1 deletion types/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const types: { [key: string]: string[] } = {
'application/vnd.aristanetworks.swi': ['swi'],
'application/vnd.astraea-software.iota': ['iota'],
'application/vnd.audiograph': ['aep'],
'application/vnd.autodesk.fbx': ['fbx'],
'application/vnd.balsamiq.bmml+xml': ['bmml'],
'application/vnd.blueice.multipass': ['mpm'],
'application/vnd.bmi': ['bmi'],
Expand Down Expand Up @@ -65,6 +66,7 @@ const types: { [key: string]: string[] } = {
'application/vnd.dart': ['dart'],
'application/vnd.data-vision.rdz': ['rdz'],
'application/vnd.dbf': ['dbf'],
'application/vnd.dcmp+xml': ['dcmp'],
'application/vnd.dece.data': ['uvf', 'uvvf', 'uvd', 'uvvd'],
'application/vnd.dece.ttml+xml': ['uvt', 'uvvt'],
'application/vnd.dece.unspecified': ['uvx', 'uvvx'],
Expand Down Expand Up @@ -116,7 +118,13 @@ const types: { [key: string]: string[] } = {
'application/vnd.geospace': ['g3w'],
'application/vnd.gmx': ['gmx'],
'application/vnd.google-apps.document': ['gdoc'],
'application/vnd.google-apps.drawing': ['gdraw'],
'application/vnd.google-apps.form': ['gform'],
'application/vnd.google-apps.jam': ['gjam'],
'application/vnd.google-apps.map': ['gmap'],
'application/vnd.google-apps.presentation': ['gslides'],
'application/vnd.google-apps.script': ['gscript'],
'application/vnd.google-apps.site': ['gsite'],
'application/vnd.google-apps.spreadsheet': ['gsheet'],
'application/vnd.google-earth.kml+xml': ['kml'],
'application/vnd.google-earth.kmz': ['kmz'],
Expand Down Expand Up @@ -227,6 +235,7 @@ const types: { [key: string]: string[] } = {
'application/vnd.ms-powerpoint.slideshow.macroenabled.12': ['ppsm'],
'application/vnd.ms-powerpoint.template.macroenabled.12': ['potm'],
'application/vnd.ms-project': ['*mpp', 'mpt'],
'application/vnd.ms-visio.viewer': ['vdx'],
'application/vnd.ms-word.document.macroenabled.12': ['docm'],
'application/vnd.ms-word.template.macroenabled.12': ['dotm'],
'application/vnd.ms-works': ['wps', 'wks', 'wcm', 'wdb'],
Expand Down Expand Up @@ -306,6 +315,9 @@ const types: { [key: string]: string[] } = {
'application/vnd.pocketlearn': ['plf'],
'application/vnd.powerbuilder6': ['pbd'],
'application/vnd.previewsystems.box': ['box'],
'application/vnd.procrate.brushset': ['brushset'],
'application/vnd.procreate.brush': ['brush'],
'application/vnd.procreate.dream': ['drm'],
'application/vnd.proteus.magazine': ['mgz'],
'application/vnd.publishare-delta-tree': ['qps'],
'application/vnd.pvi.ptid1': ['ptid'],
Expand Down Expand Up @@ -381,7 +393,7 @@ const types: { [key: string]: string[] } = {
'application/vnd.unity': ['unityweb'],
'application/vnd.uoml+xml': ['uoml', 'uo'],
'application/vnd.vcx': ['vcx'],
'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw'],
'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw', 'vsdx', 'vtx'],
'application/vnd.visionary': ['vis'],
'application/vnd.vsf': ['vsf'],
'application/vnd.wap.wbxml': ['wbxml'],
Expand Down Expand Up @@ -415,6 +427,7 @@ const types: { [key: string]: string[] } = {
'application/x-bcpio': ['bcpio'],
'application/x-bdoc': ['*bdoc'],
'application/x-bittorrent': ['torrent'],
'application/x-blender': ['blend'],
'application/x-blorb': ['blb', 'blorb'],
'application/x-bzip': ['bz'],
'application/x-bzip2': ['bz2', 'boz'],
Expand All @@ -425,6 +438,7 @@ const types: { [key: string]: string[] } = {
'application/x-chess-pgn': ['pgn'],
'application/x-chrome-extension': ['crx'],
'application/x-cocoa': ['cco'],
'application/x-compressed': ['*rar'],
'application/x-conference': ['nsc'],
'application/x-cpio': ['cpio'],
'application/x-csh': ['csh'],
Expand Down Expand Up @@ -464,6 +478,7 @@ const types: { [key: string]: string[] } = {
'application/x-hdf': ['hdf'],
'application/x-httpd-php': ['php'],
'application/x-install-instructions': ['install'],
'application/x-ipynb+json': ['ipynb'],
'application/x-iso9660-image': ['*iso'],
'application/x-iwork-keynote-sffkey': ['*key'],
'application/x-iwork-numbers-sffnumbers': ['*numbers'],
Expand Down Expand Up @@ -541,6 +556,7 @@ const types: { [key: string]: string[] } = {
'application/x-xliff+xml': ['*xlf'],
'application/x-xpinstall': ['xpi'],
'application/x-xz': ['xz'],
'application/x-zip-compressed': ['*zip'],
'application/x-zmachine': ['z1', 'z2', 'z3', 'z4', 'z5', 'z6', 'z7', 'z8'],
'audio/vnd.dece.audio': ['uva', 'uvva'],
'audio/vnd.digital-winds': ['eol'],
Expand Down Expand Up @@ -598,6 +614,7 @@ const types: { [key: string]: string[] } = {
'image/vnd.xiff': ['xif'],
'image/vnd.zbrush.pcx': ['pcx'],
'image/x-3ds': ['3ds'],
'image/x-adobe-dng': ['dng'],
'image/x-cmu-raster': ['ras'],
'image/x-cmx': ['cmx'],
'image/x-freehand': ['fh', 'fhc', 'fh4', 'fh5', 'fh7'],
Expand Down
22 changes: 17 additions & 5 deletions types/standard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const types: { [key: string]: string[] } = {
'application/dash+xml': ['mpd'],
'application/dash-patch+xml': ['mpp'],
'application/davmount+xml': ['davmount'],
'application/dicom': ['dcm'],
'application/docbook+xml': ['dbk'],
'application/dssc+der': ['dssc'],
'application/dssc+xml': ['xdssc'],
Expand Down Expand Up @@ -114,7 +115,14 @@ const types: { [key: string]: string[] } = {
'application/oebps-package+xml': ['opf'],
'application/ogg': ['ogx'],
'application/omdoc+xml': ['omdoc'],
'application/onenote': ['onetoc', 'onetoc2', 'onetmp', 'onepkg'],
'application/onenote': [
'onetoc',
'onetoc2',
'onetmp',
'onepkg',
'one',
'onea',
],
'application/oxps': ['oxps'],
'application/p2p-overlay+xml': ['relo'],
'application/patch-ops-error+xml': ['xer'],
Expand Down Expand Up @@ -210,6 +218,7 @@ const types: { [key: string]: string[] } = {
'application/yang': ['yang'],
'application/yin+xml': ['yin'],
'application/zip': ['zip'],
'application/zip+dotlottie': ['lottie'],
'audio/3gpp': ['*3gpp'],
'audio/aac': ['adts', 'aac'],
'audio/adpcm': ['adp'],
Expand All @@ -218,7 +227,7 @@ const types: { [key: string]: string[] } = {
'audio/midi': ['mid', 'midi', 'kar', 'rmi'],
'audio/mobile-xmf': ['mxmf'],
'audio/mp3': ['*mp3'],
'audio/mp4': ['m4a', 'mp4a'],
'audio/mp4': ['m4a', 'mp4a', 'm4b'],
'audio/mpeg': ['mpga', 'mp2', 'mp2a', 'mp3', 'm2a', 'm3a'],
'audio/ogg': ['oga', 'ogg', 'spx', 'opus'],
'audio/s3m': ['s3m'],
Expand Down Expand Up @@ -250,11 +259,12 @@ const types: { [key: string]: string[] } = {
'image/heif': ['heif'],
'image/heif-sequence': ['heifs'],
'image/hej2k': ['hej2'],
'image/hsj2': ['hsj2'],
'image/ief': ['ief'],
'image/jaii': ['jaii'],
'image/jais': ['jais'],
'image/jls': ['jls'],
'image/jp2': ['jp2', 'jpg2'],
'image/jpeg': ['jpeg', 'jpg', 'jpe'],
'image/jpeg': ['jpg', 'jpeg', 'jpe'],
'image/jph': ['jph'],
'image/jphc': ['jhc'],
'image/jpm': ['jpm', 'jpgm'],
Expand All @@ -269,6 +279,7 @@ const types: { [key: string]: string[] } = {
'image/jxss': ['jxss'],
'image/ktx': ['ktx'],
'image/ktx2': ['ktx2'],
'image/pjpeg': ['jfif'],
'image/png': ['png'],
'image/sgi': ['sgi'],
'image/svg+xml': ['svg', 'svgz'],
Expand All @@ -282,7 +293,7 @@ const types: { [key: string]: string[] } = {
'message/global-delivery-status': ['u8dsn'],
'message/global-disposition-notification': ['u8mdn'],
'message/global-headers': ['u8hdr'],
'message/rfc822': ['eml', 'mime'],
'message/rfc822': ['eml', 'mime', 'mht', 'mhtml'],
'model/3mf': ['3mf'],
'model/gltf+json': ['gltf'],
'model/gltf-binary': ['glb'],
Expand All @@ -292,6 +303,7 @@ const types: { [key: string]: string[] } = {
'model/mtl': ['mtl'],
'model/obj': ['obj'],
'model/prc': ['prc'],
'model/step': ['step', 'stp', 'stpnc', 'p21', '210'],
'model/step+xml': ['stpx'],
'model/step+zip': ['stpz'],
'model/step-xml+zip': ['stpxz'],
Expand Down