Skip to content

Allow files with upper case extensions when uploading avatar

Discovered when attempting to upload a file with name avatar.JPG

The following error was reported in the logs:

File "/app/funkwhale_api/common/serializers.py", line 213, in to_internal_value
     format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1]],
 KeyError: '.JPG'

Merge request reports