I'm trying to upload files with dwg extension to media but when I do that I get an error telling me that uploading files with this extension is not allowed. I tried to upload them via ftp but I cannot see them in my panel afterwards. I've looked for a solution online and tried adding this to my functions.php
:
function custom_upload_mimes ( $existing_mimes=array() ) {
$existing_mimes[‘dwg’] = ‘application/dwg’;
return $existing_mimes;
}
add_filter(‘upload_mimes’,’custom_upload_mimes’);
But it didn't change anything. Is there any other way to bypass this file restriction?
‘
and’
rather than'
?'
instead but it didn't help either.