From 80ed3c432eaa919c761a368526d549eb3e91cbaa Mon Sep 17 00:00:00 2001 From: VladislavOstapov Date: Wed, 5 Apr 2023 13:33:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D0=B4=D0=B8=D0=B0=20=D1=81=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=BE=D0=BC=20jpg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_methods.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/api_methods.py b/api/api_methods.py index 7b657b1..46c320f 100755 --- a/api/api_methods.py +++ b/api/api_methods.py @@ -695,6 +695,7 @@ class ApiMedia: def __filename_to_ext(filename: str): formats = { ".jpeg": "jpeg", + ".jpg": "jpg", ".png": "png", ".pdf": "pdf" } @@ -707,6 +708,7 @@ class ApiMedia: @staticmethod def __ext_to_content_type(ext: str): formats = { + "jpg": "image/jpeg", "jpeg": "image/jpeg", "png": "image/png", "pdf": "application/pdf"