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"