So I run this type of code in my wp $filetype = wp_check_filetype($_POST['file']); $type = $_FILES['file'];
if($type['type'] == 'application/x-zip-compressed'){
}else{
if($type['type'] == 'application/octet-stream'){
and I come up with small issue that I can't get around...The problem is that we allow .rar .zip only to be uploaded on the server however application/octet-stream is .bin which we do not accept. I wonder if there is a way of stopping the .bin file while application/octet-stream is in act. appreciate any help