feat: additional drag and drop image format support (webp, bmp, ico) (#5749)

Update constants.ts
This commit is contained in:
zsviczian 2022-10-10 04:15:30 +02:00 committed by GitHub
parent 3298aaf0c7
commit d1441afec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;