Support

Account

Home Forums Bug Reports ACF Allowed File Types vCard Bug Reply To: ACF Allowed File Types vCard Bug

  • Hi @johnnydugs,

    Thank you for bringing this issue to our attention. This is currently a limitation of the ACF upload field but you can add the vCard support through the following code:
    /*
    Add V card support
    _______________________________________________
    */
    add_filter(‘upload_mimes’, ‘custom_upload_mimes’);
    function custom_upload_mimes ( $existing_mimes=array() ) {
    // add your extension to the array
    $existing_mimes[‘vcf’] = ‘text/x-vcard’;
    return $existing_mimes;
    }

    The above code should go to your functions.php file. You can then add the following code to your htaccess file:

    AddType application/octet-stream vcf