From 005d590ac5c354ff04db67297353f3c7ce5da215 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 19 Oct 2022 16:06:32 -0700 Subject: [PATCH] Add support for memes from the 90s MIMEs test by @illnesse (#83) --- lib/AppInfo/Application.php | 10 +++++----- src/services/DavRequests.ts | 10 +++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 9e066a17..722654e5 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -43,20 +43,20 @@ class Application extends App implements IBootstrap 'image/heic', 'image/png', 'image/tiff', - // 'image/gif', // too rarely used for photos + 'image/gif', + 'image/bmp', // 'image/x-xbitmap', // too rarely used for photos - // 'image/bmp', // too rarely used for photos // 'image/svg+xml', // too rarely used for photos ]; public const VIDEO_MIMES = [ 'video/mpeg', - // 'video/ogg', // too rarely used for photos - // 'video/webm', // too rarely used for photos + 'video/webm', 'video/mp4', - // 'video/x-m4v', // too rarely used for photos 'video/quicktime', 'video/x-matroska', + // 'video/x-m4v', // too rarely used for photos + // 'video/ogg', // too rarely used for photos ]; public function __construct() diff --git a/src/services/DavRequests.ts b/src/services/DavRequests.ts index d0cd8ce0..e30847a9 100644 --- a/src/services/DavRequests.ts +++ b/src/services/DavRequests.ts @@ -21,10 +21,18 @@ const props = ` `; const IMAGE_MIME_TYPES = [ + 'image/png', 'image/jpeg', + 'image/heic', 'image/png', 'image/tiff', - 'image/heic', + 'image/gif', + 'image/bmp', + 'video/mpeg', + 'video/webm', + 'video/mp4', + 'video/quicktime', + 'video/x-matroska', ]; const GET_FILE_CHUNK_SIZE = 50;