Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown MIME type for uppercase JPG #22425

Closed
ratkingsminion opened this issue Oct 6, 2024 · 0 comments · Fixed by #22483
Closed

Unknown MIME type for uppercase JPG #22425

ratkingsminion opened this issue Oct 6, 2024 · 0 comments · Fixed by #22483
Labels
Bug This tag is applied to issues which reports bugs. Good First Issue (easy task) This issue is suitable to be worked on by new contributors. Unit: veb Bugs/feature requests, that are related to the `veb`, V's official web framework.

Comments

@ratkingsminion
Copy link

ratkingsminion commented Oct 6, 2024

Describe the bug

I used a file named P123.JPG in a veb project and V panics about the MIME type.

Reproduction Steps

Load a picture with an uppercase extension inside project using veb.

Expected Behavior

MIME types should be case insensitive.

Current Behavior

I get this error:
V panic: result not set (unknown MIME type for file extension ".JPG". You can register your MIME type in app.static_mime_types)

Possible Solution

No response

Additional Information/Context

No response

V version

0.4.8

Environment details (OS name and version, etc.)

Linux Mint

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@ratkingsminion ratkingsminion added the Bug This tag is applied to issues which reports bugs. label Oct 6, 2024
@felipensp felipensp added Good First Issue (easy task) This issue is suitable to be worked on by new contributors. Unit: veb Bugs/feature requests, that are related to the `veb`, V's official web framework. labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs. Good First Issue (easy task) This issue is suitable to be worked on by new contributors. Unit: veb Bugs/feature requests, that are related to the `veb`, V's official web framework.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants