Commit 04d4455d authored by Robin Tissot's avatar Robin Tissot
Browse files

fixes images in zip with uppercase file extension not being loaded.

parent 08e4e0e2
......@@ -145,7 +145,7 @@ class ZipParser(ParserDocument):
try:
file_extension = os.path.splitext(zipedfh.name)[1][1:]
# image
if file_extension in get_available_image_extensions():
if file_extension.lower() in get_available_image_extensions():
try:
part = DocumentPart.objects.filter(
document=self.document,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment