diff --git a/instagrapi/mixins/photo.py b/instagrapi/mixins/photo.py index 82220ef1..b5b3d4de 100644 --- a/instagrapi/mixins/photo.py +++ b/instagrapi/mixins/photo.py @@ -235,7 +235,7 @@ def photo_upload( An object of Media class """ path = Path(path) - valid_extensions = [".jpg", ".jpeg", ".png", "webp"] + valid_extensions = [".jpg", ".jpeg", ".png", ".webp"] if path.suffix.lower() not in valid_extensions: raise ValueError("Invalid file format. Only JPG/JPEG/PNG/WEBP files are supported.")