Commit 4c3e04bc authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Correctly split file extension from media filename

parent d03a2460
......@@ -25,7 +25,7 @@ def _normalize_file_extension(original_file_name):
"jpg": "jpeg"
}
ext = path.splitext(original_file_name)
ext = path.splitext(original_file_name)[1]
return file_ext_mapping.get(k=ext.lower(), default=ext.lower())
......
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