function be_enable_vcard_upload( $mime_types ){
$mime_types['vcf'] = 'text/x-vcard';
return $mime_types;
}
add_filter('upload_mimes', 'be_enable_vcard_upload' );
But this doesnet work.
]]>Also having the same issue on an install version 4.9.9
]]>https://www.ads-software.com/plugins/upload-file-type-settings-plugin/
]]>so this works
function _thz_enable_vcard_upload( $mime_types ){
$mime_types['vcf'] = 'text/vcard';
$mime_types['vcard'] = 'text/vcard';
return $mime_types;
}
add_filter('upload_mimes', '_thz_enable_vcard_upload' );
]]>
function jberg_enable_vcard_upload( $mime_types=array() ){
$mime_types['vcf'] = 'text/x-vcard';
$mime_types['vcard'] = 'text/x-vcard';
return $mime_types;
}
add_filter('upload_mimes', 'jberg_enable_vcard_upload' );
]]>
Could be an issue with WPEngine.? They do have stricter security rules. I know there are certain plugins they don’t allow, and also require a manual override when using “ORDER BY RAND” in your query. They might be blocking the function for vCard. Wonder if they also block SVG.
]]>