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
New validation option to check that file extension matches mime type #195
Comments
Let's wait a few days for comment's. Could be useful. |
This sounds like content type spoofing validation. Similar to what |
Adding content type spoofing validation sounds like a good idea to me too. I think |
this is also interesting |
Yes that looks like a really good addition to the gem, I'll work on it in the coming days, let me know if you want to help :) |
Hi,
I would like to propose a new validation that checks if the extension matches the actual content type of the document. This should help to prevent upload of a
.pdf
which is actually a.docx
I don't know a good name for this validation, or if it should be an option of
content_type
, likematch_extension: true
I can work on a PR if you are interested
The text was updated successfully, but these errors were encountered: