You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LoeFS is setting an incorrect mime type for both '.webm' & '.webp' in leo_mime.erl.
Line #L422 should be <<"video/webm">>
Line #L424 should be <<"image/webp">>
I found a reference to leo_mime.erl in issue #179. I was trying to use s3cmd modify -m image/webp <OBJECT> to set the correct mime type when I realized that LeoFS must be setting the mime type internally on upload and not allowing me to modify it after the fact.
I would have submitted a pull request, but it's such a small change that I figured opening an issue was easier.
This is probably a separate issue, but do you have plans to allow LeoFS to modify/override the mime type in future versions? Or is it possible now and I'm just not seeing it?
Thanks!
The text was updated successfully, but these errors were encountered:
@rmayhue Thank you for your report. I've recognized those mime types are incorrect as you mentioned.
[Correct]
Extension
Kind of document
MIME Type
.webm
WEBM video
video/webm
.webp
WEBP image
image/webp
I would have submitted a pull request, but it's such a small change that I figured opening an issue was easier.
If you have time, could you send a PR?
This is probably a separate issue, but do you have plans to allow LeoFS to modify/override the mime type in future versions? Or is it possible now and I'm just not seeing it?
The latest version does not support it yet. We'll consider how to realize your request, "modify/override the mime type".
LoeFS is setting an incorrect mime type for both '.webm' & '.webp' in leo_mime.erl.
Line #L422 should be <<"video/webm">>
Line #L424 should be <<"image/webp">>
I found a reference to
leo_mime.erl
in issue #179. I was trying to uses3cmd modify -m image/webp <OBJECT>
to set the correct mime type when I realized that LeoFS must be setting the mime type internally on upload and not allowing me to modify it after the fact.I would have submitted a pull request, but it's such a small change that I figured opening an issue was easier.
This is probably a separate issue, but do you have plans to allow LeoFS to modify/override the mime type in future versions? Or is it possible now and I'm just not seeing it?
Thanks!
The text was updated successfully, but these errors were encountered: