From 2f9d0a24047432be45c4a68cff169e407b14a2cd Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 6 Oct 2023 16:55:20 -0400 Subject: [PATCH] feat: jpe extension (#4374) --- server/src/domain/domain.constant.spec.ts | 1 + server/src/domain/domain.constant.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/server/src/domain/domain.constant.spec.ts b/server/src/domain/domain.constant.spec.ts index 50d72cf22..9936e4854 100644 --- a/server/src/domain/domain.constant.spec.ts +++ b/server/src/domain/domain.constant.spec.ts @@ -20,6 +20,7 @@ describe('mimeTypes', () => { { mimetype: 'image/heic', extension: '.heic' }, { mimetype: 'image/heif', extension: '.heif' }, { mimetype: 'image/iiq', extension: '.iiq' }, + { mimetype: 'image/jpeg', extension: '.jpe' }, { mimetype: 'image/jpeg', extension: '.jpeg' }, { mimetype: 'image/jpeg', extension: '.jpg' }, { mimetype: 'image/jxl', extension: '.jxl' }, diff --git a/server/src/domain/domain.constant.ts b/server/src/domain/domain.constant.ts index aa9c50ac1..e89b90fb2 100644 --- a/server/src/domain/domain.constant.ts +++ b/server/src/domain/domain.constant.ts @@ -42,6 +42,7 @@ const image: Record = { '.heif': ['image/heif'], '.iiq': ['image/iiq', 'image/x-phaseone-iiq'], '.insp': ['image/jpeg'], + '.jpe': ['image/jpeg'], '.jpeg': ['image/jpeg'], '.jpg': ['image/jpeg'], '.jxl': ['image/jxl'],