From 73bafff9f48efd0a9e4e7c8d3bfe14a4f677bb62 Mon Sep 17 00:00:00 2001 From: Jared Therriault Date: Wed, 26 Feb 2025 12:21:49 -0800 Subject: [PATCH] Add webp support for envs that don't natively support it --- py/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/utils.py b/py/utils.py index 46bc35a..a06e23b 100644 --- a/py/utils.py +++ b/py/utils.py @@ -84,6 +84,7 @@ ACCEPTED_IMAGE_AND_VIDEO_EXTENSIONS_COMPENDIUM = ( ALL_ACCEPTED_IMAGE_EXTENSIONS + ALL_ACCEPTED_UPLOAD_VISUAL_EXTENSIONS + ALL_ACCEPTED_BROWSER_VISUAL_EXTENSIONS ) +mimetypes.add_type ('image/webp', '.webp') @staticmethod def return_random_int(min=1, max=100000):