We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can't seem to get EE7 to allow vCard uploads

How Do I?

The Design Core's avatar
The Design Core
359 posts
one month ago
The Design Core's avatar The Design Core

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.

       
Jared Chesebro's avatar
Jared Chesebro
8 posts
one month ago
Jared Chesebro's avatar Jared Chesebro

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.

       
Jared Chesebro's avatar
Jared Chesebro
8 posts
one month ago
Jared Chesebro's avatar Jared Chesebro

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

       
Yuri's avatar
Yuri
312 posts
one month ago
Yuri's avatar Yuri

My guess would be that your server is recognizing vCard file as different mime, not text/vcard

       
The Design Core's avatar
The Design Core
359 posts
one month ago
The Design Core's avatar The Design Core

Thanks for the input, everyone.

Putting this in my config file did the trick:

$config['mime_whitelist_additions'] = array(
  'text/vcard'
);
🎉 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.