I’m using EE 7.2.11 and have a File field that I want to allow vCard uploads. I have set the directory to allow All Files, I have checked that my server has text/x-vcard set up as a mime type in the file system, and have also added the mime type to the system/ee/ExpressionEngine/Config/mimes.php file.
I have also tried turning off XSS filtering but none of the above will allow vcards to be upload in EE. It always gives me a file not allowed error.
What am I missing? Thank you for any help.
I found the following in the ExpressionEngine docs: Mime Whitelist Additions
I haven’t tried it but I think that is a good place to start.
Rather the editing the original mimes.php file the docs say to: “copy the corresponding file to
system/user/config folder and change or add the values that are needed. There is no need to keep the full copy of config file, just keep the properties that need to be changed and remove the ones that you are fine with - the default values will be used for those.”
Reference: Additional Config Files
Thanks for the input, everyone.
Putting this in my config file did the trick:
$config['mime_whitelist_additions'] = array( 'text/vcard' );
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.