function my_custom_upload_mimes($mimes = array()) {
// Add a key and value for the CSV file type
$mimes[‘dwg’] = “image/vnd.dwg”;
$mimes[‘rvt’] = “application/octet-stream”;
return $mimes;
}
add_action(‘upload_mimes’, ‘my_custom_upload_mimes’);
ARGH. Looks like we already had enabled mime types.