mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
feat(server): extensions for MPEG and 3GP (#8400)
* Update mime-types.spec.ts * Update mime-types.ts
This commit is contained in:
parent
c4bb9f49ff
commit
b6af7788e1
@ -75,10 +75,13 @@ describe('mimeTypes', () => {
|
||||
{ mimetype: 'image/x-sony-srf', extension: '.srf' },
|
||||
{ mimetype: 'image/x3f', extension: '.x3f' },
|
||||
{ mimetype: 'video/3gpp', extension: '.3gp' },
|
||||
{ mimetype: 'video/3gpp', extension: '.3gpp' },
|
||||
{ mimetype: 'video/avi', extension: '.avi' },
|
||||
{ mimetype: 'video/mp2t', extension: '.m2ts' },
|
||||
{ mimetype: 'video/mp2t', extension: '.mts' },
|
||||
{ mimetype: 'video/mp4', extension: '.mp4' },
|
||||
{ mimetype: 'video/mpeg', extension: '.mpe' },
|
||||
{ mimetype: 'video/mpeg', extension: '.mpeg' },
|
||||
{ mimetype: 'video/mpeg', extension: '.mpg' },
|
||||
{ mimetype: 'video/msvideo', extension: '.avi' },
|
||||
{ mimetype: 'video/quicktime', extension: '.mov' },
|
||||
|
@ -56,6 +56,7 @@ const profile: Record<string, string[]> = Object.fromEntries(
|
||||
|
||||
const video: Record<string, string[]> = {
|
||||
'.3gp': ['video/3gpp'],
|
||||
'.3gpp': ['video/3gpp'],
|
||||
'.avi': ['video/avi', 'video/msvideo', 'video/vnd.avi', 'video/x-msvideo'],
|
||||
'.flv': ['video/x-flv'],
|
||||
'.insv': ['video/mp4'],
|
||||
@ -64,6 +65,8 @@ const video: Record<string, string[]> = {
|
||||
'.mkv': ['video/x-matroska'],
|
||||
'.mov': ['video/quicktime'],
|
||||
'.mp4': ['video/mp4'],
|
||||
'.mpe': ['video/mpeg'],
|
||||
'.mpeg': ['video/mpeg'],
|
||||
'.mpg': ['video/mpeg'],
|
||||
'.mts': ['video/mp2t'],
|
||||
'.webm': ['video/webm'],
|
||||
|
Loading…
Reference in New Issue
Block a user