From 660b2e908d2feee12db07cd6a19e27792348ee2e Mon Sep 17 00:00:00 2001 From: haosu <18112496+haossu@users.noreply.github.com> Date: Fri, 19 Jan 2024 01:18:56 +0800 Subject: [PATCH] feat(format): hif format (#6477) --- 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 89465638bc..84cd4d8ee7 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/gif', extension: '.gif' }, { mimetype: 'image/heic', extension: '.heic' }, { mimetype: 'image/heif', extension: '.heif' }, + { mimetype: 'image/hif', extension: '.hif' }, { mimetype: 'image/iiq', extension: '.iiq' }, { mimetype: 'image/jpeg', extension: '.jpe' }, { mimetype: 'image/jpeg', extension: '.jpeg' }, diff --git a/server/src/domain/domain.constant.ts b/server/src/domain/domain.constant.ts index 7991d9da2a..8b101a1b68 100644 --- a/server/src/domain/domain.constant.ts +++ b/server/src/domain/domain.constant.ts @@ -98,6 +98,7 @@ const image: Record = { '.gif': ['image/gif'], '.heic': ['image/heic'], '.heif': ['image/heif'], + '.hif': ['image/hif'], '.iiq': ['image/iiq', 'image/x-phaseone-iiq'], '.insp': ['image/jpeg'], '.jpe': ['image/jpeg'],