Description
Is your proposal related to a problem?
For JPEG files, both the .jpg
and .jpeg
file extensions are in use in the wild. Our WAGTAILIMAGES_EXTENSIONS setting treats them as separate extensions (as they are), which can create friction / confusion when the setting is used incorrectly: if it only contains jpg
, all .jpeg
files will fail to upload. This doesn’t seem like a particularly useful behavior as the files are identical anyway.
Describe the solution you'd like
We could make our file extension checker cleverer, so even if only jpg
or jpeg
are included, images can be uploaded with either extensions?
wagtail/wagtail/images/fields.py
Lines 14 to 29 in 988a48a
Describe alternatives you've considered
Or we could update our documentation so the canonical example reflects the need to use both jpg
and jpeg
.
Additional context
(Write your answer here.)
Working on this
Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.