We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We use mimetypes.guess_extension() to define the extension of the uploaded file
mimetypes.guess_extension()
But image/webp doesn't seem to be managed by the server (nor my local environment - Ubuntu 22.04)
image/webp
The text was updated successfully, but these errors were encountered:
A solution seems to be to edit the server's /etc/mime.types : https://stackoverflow.com/a/67938698/4293684
/etc/mime.types
But is this the best solution ?
Best is to manage it in the code (for future servers or users without this config)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Story
We use
mimetypes.guess_extension()
to define the extension of the uploaded fileBut
image/webp
doesn't seem to be managed by the server (nor my local environment - Ubuntu 22.04)The text was updated successfully, but these errors were encountered: