Thread:Project:Support desk/Setting upload permission for specific file type/reply

See the UploadVerification hook. It may help to see how the UploadBlacklist extension is using the hook.