From d1441afec90498c0ca6dacb1fcb09db182f2f1ba Mon Sep 17 00:00:00 2001 From: zsviczian Date: Mon, 10 Oct 2022 04:15:30 +0200 Subject: [PATCH] feat: additional drag and drop image format support (webp, bmp, ico) (#5749) Update constants.ts --- src/constants.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/constants.ts b/src/constants.ts index adf71a45..87ffa9c8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -99,6 +99,9 @@ export const MIME_TYPES = { "excalidraw.png": "image/png", jpg: "image/jpeg", gif: "image/gif", + webp: "image/webp", + bmp: "image/bmp", + ico: "image/x-icon", binary: "application/octet-stream", } as const; @@ -180,6 +183,9 @@ export const ALLOWED_IMAGE_MIME_TYPES = [ MIME_TYPES.jpg, MIME_TYPES.svg, MIME_TYPES.gif, + MIME_TYPES.webp, + MIME_TYPES.bmp, + MIME_TYPES.ico, ] as const; export const MAX_ALLOWED_FILE_BYTES = 2 * 1024 * 1024;