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:
commit
031cc68375
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue