I tried the above solution but didn't work for me in the end
I allowed all the mime types via wp-config.php
define( 'ALLOW_UNFILTERED_UPLOADS', true );
You can create your custom restriction when the file is submitted. use $_FILES array and put your restriction on the extension of the file and type before upload.