Hi guys,
We have received a request to add a validation when an admin user uploads a file. Specifically, we should not allow uploading of files that are not what other extension says.
Our customer is worried about accidental upload of files with image extensions which in fact are javascript or other malicious code.
I have tried on our file manager, and I could upload a javascript file with a changed extension, it does not render a preview after upload (which is obviously why) and when clicking on it I get a message saying that the file is not an image:
This means that we already have a way of detecting improper files.
Is it possible to add this validation on upload and deny uploading files that are not what they say they are?
Thank you,
Adrian