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

Allow files with upper case extensions when uploading avatar

See merge request funkwhale/funkwhale!1022
This commit is contained in:
Eliot Berriot 2020-02-02 09:11:36 +01:00
commit 031cc68375
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField):
with io.BytesIO() as output:
image_without_exif.save(
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,
)
content = output.getvalue()