Helo
I get a "403 Forbidden Error" for my link to a .vcf file in my "assets/Uploads" folder.
Seems like SilverStripe doesn't allow .vcf files. Does anyone know how I can add the .vcf ending to the allowed extensions?
Thanks!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Helo
I get a "403 Forbidden Error" for my link to a .vcf file in my "assets/Uploads" folder.
Seems like SilverStripe doesn't allow .vcf files. Does anyone know how I can add the .vcf ending to the allowed extensions?
Thanks!
Hi repoman,
i've done that by adding this to my mysite/_config.php:
// Allow usage of .vcf files by adding 'vcf to the $allowed_extensions array
File::$allowed_extensions[] = 'vcf';
Also make sure to to add vcf to the .htaccess file in your assets directory.
Cheers
Christian
Hi Christian
Thanks!
I can't figure out how to add vcf to the .htaccess file in my assets directory. How did you do it?
I tried to add this to the .htaccess file in my "mysite" folder:
<Directory /html/www/cms/assets/>
AddType text/x-vcard .vcf
</Directory>
and created a .htaccess file in my assets directory and added this:
AddType text/x-vcard .vcf
Either way I failed.
Thanks! repoman
Hi,
i think there's no need to edit the .htaccess in the mysite directory.
I've copied and pasted my assets/.htaccess to here: http://pastie.org/1843569
Cheers
Christian
Thanks!