Looking for ways to prevent upload of specific filetypes into a specific directory. PHP for example.

It looks like there may be a method in mod_security

Any alternative ways?

Thanks