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.
Thanks! Where would I input this code? I’ve not used mime types before but would loev to test it.
Thanks! File types are in there and DWG | RVT files have uploaded without error in the past. This is a new issue.