From 36de6372274e76c4dde0261a6b83db6ef44f65e0 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Sat, 21 Dec 2024 14:25:09 +0100 Subject: [PATCH] fix: do not convert images in zip to HTML --- src/usecases/uploads/isZipContentFileSupported.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/usecases/uploads/isZipContentFileSupported.ts b/src/usecases/uploads/isZipContentFileSupported.ts index 22291021..8f03067c 100644 --- a/src/usecases/uploads/isZipContentFileSupported.ts +++ b/src/usecases/uploads/isZipContentFileSupported.ts @@ -4,7 +4,6 @@ import { isPlainText, isCSVFile, isPDFFile, - isImageFile, } from '../../lib/storage/checks'; /** @@ -15,5 +14,4 @@ export const isZipContentFileSupported = (filename: string) => isMarkdownFile(filename) ?? isPlainText(filename) ?? isCSVFile(filename) ?? - isPDFFile(filename) ?? - isImageFile(filename); + isPDFFile(filename);