Block certain file types from being uploaded to nuget repository

I have a Hosted Nuget Repository where I would like to include a rule that .nupkg packages containing a certain file extension are blocked from being uploaded to that repository. Is there any standard functionality for this? if not, is it possible to attach custom scripts to Nexus triggered on repository upload?