From 86c0974a6e2f52c04ef126152ec091082cf78f04 Mon Sep 17 00:00:00 2001 From: city-unit <140349364+city-unit@users.noreply.github.com> Date: Wed, 30 Aug 2023 15:33:39 -0400 Subject: [PATCH] More image support --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 07376e530..1ba3269f7 100644 --- a/server.js +++ b/server.js @@ -2662,7 +2662,7 @@ app.post('/uploadimage', jsonParser, async (request, response) => { } // Extracting the base64 data and the image format - const match = request.body.image.match(/^data:image\/(png|jpg|webp);base64,(.+)$/); + const match = request.body.image.match(/^data:image\/(png|jpg|webp|jpeg|gif);base64,(.+)$/); if (!match) { return response.status(400).send({ error: "Invalid image format" }); }