Skip to content

Commit

Permalink
add definition mimetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Aug 17, 2024
1 parent a729ec6 commit 4cef0a5
Showing 1 changed file with 57 additions and 28 deletions.
85 changes: 57 additions & 28 deletions src/Util/Filter/MimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,47 +42,76 @@ final class MimeType
*/
protected static string $mimeTypeFile = self::DEFAULT_MIME_TYPES_FILE;

/**
* The extension prefill
*
* @var string[]
*/
private const EXTENSION_PREFILL = [
'application/vnd.etsi.asic-e+zip' => 'asice',
'application/x-bz2' => 'bz2',
'text/csv' => 'csv',
'application/ecmascript' => 'ecma',
'video/x-flv' => 'flv',
'image/gif' => 'gif',
'application/x-gzip' => 'gz',
'text/html' => 'html',
'application/x-java-archive' => 'jar',
'image/jpeg' => 'jpg',
'text/javascript' => 'js',
'application/vnd.apple.keynote' => 'keynote',
'audio/x-mpegurl' => 'm3u',
'audio/mp4' => 'm4a',
'text/markdown' => 'md',
'text/x-markdown' => 'md',
'application/x-msaccess' => 'mdb',
'audio/midi' => 'mid',
'video/quicktime' => 'mov',
'audio/mpeg' => 'mp3',
'audio/ogg' => 'ogg',
'application/pdf' => 'pdf',
'application/x-java-archive' => 'jar',
'application/x-php' => 'php',
'text/x-php' => 'php',
'application/vnd.ms-excel' => 'xls',
'application/zip' => 'zip',
'application/x-sql' => 'sql',
'application/sql' => 'sql',
'application/vnd.ms-powerpoint' => 'ppt',
'application/x-rar-compressed' => 'rar',
'application/stuffit' => 'hqx',
'application/x-stuffit' => 'sit',
'image/svg+xml' => 'svg',
'application/x-tar' => 'tar',
'image/tiff' => 'tif',
'application/ecmascript' => 'ecma',
'application/vnd.apple.keynote' => 'keynote',
'application/vnd.etsi.asic-e+zip' => 'asice',
'application/x-bz2' => 'bz2',
'application/x-bzip2' => 'bz2',
'application/x-font-truetype' => 'ttf',
'text/x-vcard' => 'vcf',
'application/x-font-opentype' => 'otf',
'application/x-gzip' => 'gz',
'application/x-msaccess' => 'mdb',
'application/x-tar' => 'tar',
'application/ogg' => 'ogx',

'audio/x-mpegurl' => 'm3u',
'audio/mp4' => 'm4a',
'audio/mp3' => 'mp3',
'audio/wav' => 'wav',
'audio/x-ms-wma' => 'wma',
'audio/x-ms-wmv' => 'wmv',
'application/vnd.ms-excel' => 'xls',
'application/zip' => 'zip',
'audio/midi' => 'mid',
'audio/mpeg' => 'mp3',
'audio/ogg' => 'oga',

'image/gif' => 'gif',
'image/jpeg' => 'jpg',
'image/svg+xml' => 'svg',
'image/tiff' => 'tif',
'image/x-icon' => 'ico',
'image/png' => 'png',
'image/webp' => 'webp',
'image/avif' => 'avif',
'image/vnd.adobe.photoshop' => 'psd',
'image/bmp' => 'bmp',

'text/x-vcard' => 'vcf',
'text/html' => 'html',
'text/javascript' => 'js',
'text/csv' => 'csv',
'text/markdown' => 'md',
'text/x-markdown' => 'md',
'text/css' => 'css',
'text/calendar' => 'ics',
'text/plain' => 'txt',
'text/x-php' => 'php',

'video/3gpp' => '3gp',
'video/mp4' => 'mp4',
'video/mpeg' => 'mpeg',
'video/ogg' => 'ogv',
'video/webm' => 'webm',
'video/x-ms-wmv' => 'wmv',
'video/x-msvideo' => 'avi',
'video/quicktime' => 'mov',
'video/x-flv' => 'flv',
];

/**
Expand Down

0 comments on commit 4cef0a5

Please sign in to comment.