This plugin allows to configure upload validations per project.

Project owners can configure blocked file extensions. Pushes of commits that contain files with these extensions are rejected by Gerrit.