mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
parent
b45ff8d09f
commit
fcd372238f
4 changed files with 18 additions and 2 deletions
|
@ -34,7 +34,7 @@ For the full list, refer to the [Immich source code](https://github.com/immich-a
|
|||
| `FLV` | `.flv` | :white_check_mark: | |
|
||||
| `M4V` | `.m4v` | :white_check_mark: | |
|
||||
| `MATROSKA` | `.mkv` | :white_check_mark: | |
|
||||
| `MP2T` | `.mts` `.m2ts` | :white_check_mark: | |
|
||||
| `MP2T` | `.mts` `.m2ts` `.m2t` | :white_check_mark: | |
|
||||
| `MP4` | `.mp4` `.insv` | :white_check_mark: | |
|
||||
| `MPEG` | `.mpg` `.mpe` `.mpeg` | :white_check_mark: | |
|
||||
| `QUICKTIME` | `.mov` | :white_check_mark: | |
|
||||
|
|
|
@ -98,7 +98,21 @@ const validImages = [
|
|||
'.x3f',
|
||||
];
|
||||
|
||||
const validVideos = ['.3gp', '.avi', '.flv', '.m2ts', '.mkv', '.mov', '.mp4', '.mpg', '.mts', '.vob', '.webm', '.wmv'];
|
||||
const validVideos = [
|
||||
'.3gp',
|
||||
'.avi',
|
||||
'.flv',
|
||||
'.m2t',
|
||||
'.m2ts',
|
||||
'.mkv',
|
||||
'.mov',
|
||||
'.mp4',
|
||||
'.mpg',
|
||||
'.mts',
|
||||
'.vob',
|
||||
'.webm',
|
||||
'.wmv',
|
||||
];
|
||||
|
||||
const uploadTests = [
|
||||
{
|
||||
|
|
|
@ -78,6 +78,7 @@ describe('mimeTypes', () => {
|
|||
{ mimetype: 'video/3gpp', extension: '.3gp' },
|
||||
{ mimetype: 'video/3gpp', extension: '.3gpp' },
|
||||
{ mimetype: 'video/avi', extension: '.avi' },
|
||||
{ mimetype: 'video/mp2t', extension: '.m2t' },
|
||||
{ mimetype: 'video/mp2t', extension: '.m2ts' },
|
||||
{ mimetype: 'video/mp2t', extension: '.mts' },
|
||||
{ mimetype: 'video/mp4', extension: '.mp4' },
|
||||
|
|
|
@ -65,6 +65,7 @@ const video: Record<string, string[]> = {
|
|||
'.avi': ['video/avi', 'video/msvideo', 'video/vnd.avi', 'video/x-msvideo'],
|
||||
'.flv': ['video/x-flv'],
|
||||
'.insv': ['video/mp4'],
|
||||
'.m2t': ['video/mp2t'],
|
||||
'.m2ts': ['video/mp2t'],
|
||||
'.m4v': ['video/x-m4v'],
|
||||
'.mkv': ['video/x-matroska'],
|
||||
|
|
Loading…
Add table
Reference in a new issue