Medias: uploaded image with uppercase extension don't work #436
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#436
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If uploading a picture with uppercase extension like

foobar.JPG, the upload works but the resulting page don't have picture or markdown thingy.If I rename
JPGtojpg, everything works fine.I don't see an error in logs, and debug is way to verbose to understand anything.
Plume version (and/or commit): latest
It is because the code to detect the type of the media (and generate its preview and markdown code) is based on the file extension, and only matches lowercase extensions for the moment. The fix would probably be to lowercase the extension before matching.