Skip to content
Snippets Groups Projects
Commit 031cc683 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch 'techknowlogick-develop-patch-80718' into 'develop'

Allow files with upper case extensions when uploading avatar

See merge request !1022
parents e9553a01 7d6f6e85
Branches
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField): ...@@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField):
with io.BytesIO() as output: with io.BytesIO() as output:
image_without_exif.save( image_without_exif.save(
output, output,
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1]], format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1].lower()],
quality=100, quality=100,
) )
content = output.getvalue() content = output.getvalue()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment