Regular expression to disallow certain files of being uploaded
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
this is untested, but you can negate with the carat.
/.^(?:js|php)$/i
I posted that the other day... How come it not here? Weird.
Create an account or sign in to comment.
The standard upload field has some standard regexp-templates, like image, or document and URI.
What would be the regular expression to disallow certain file-types? For example: everything is permitted, except
.php
and.js
.