From 34b30ff87c9595cb44c95ab346788b2bc1ae5a82 Mon Sep 17 00:00:00 2001 From: Rajat Saxena Date: Mon, 8 Apr 2024 23:16:21 +0530 Subject: [PATCH] Added webp --- apps/api/src/config/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/config/constants.ts b/apps/api/src/config/constants.ts index 07f49563..2c9d6fe1 100644 --- a/apps/api/src/config/constants.ts +++ b/apps/api/src/config/constants.ts @@ -13,7 +13,7 @@ export const APIKEY_RESTRICTION_CUSTOM = "custom"; export const tempFileDirForUploads = process.env.TEMP_FILE_DIR_FOR_UPLOADS; export const maxFileUploadSize = process.env.MAX_UPLOAD_SIZE || 2147483648; export const imagePattern = /^image\/(jpe?g|png)$/; -export const imagePatternIncludingGif = /^image\/(jpe?g|png|gif)$/; +export const imagePatternIncludingGif = /^image\/(jpe?g|png|gif|webp)$/; export const videoPattern = /video/; export const cloudEndpoint = process.env.CLOUD_ENDPOINT || ""; export const cloudRegion = process.env.CLOUD_REGION || "";