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

Proof: manage webp uploads #97

Closed
raphodn opened this issue Dec 21, 2023 · 1 comment · Fixed by #98
Closed

Proof: manage webp uploads #97

raphodn opened this issue Dec 21, 2023 · 1 comment · Fixed by #98
Labels

Comments

@raphodn
Copy link
Member

raphodn commented Dec 21, 2023

Story

We use mimetypes.guess_extension() to define the extension of the uploaded file

But image/webp doesn't seem to be managed by the server (nor my local environment - Ubuntu 22.04)

@raphodn
Copy link
Member Author

raphodn commented Dec 21, 2023

A solution seems to be to edit the server's /etc/mime.types : https://stackoverflow.com/a/67938698/4293684

But is this the best solution ?

Best is to manage it in the code (for future servers or users without this config)

@raphodn raphodn linked a pull request Dec 22, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant