21310 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1502 Views |
-
Adding .vcf to allowed extensions

28 April 2011 at 8:24pm
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!
-
Re: Adding .vcf to allowed extensions

29 April 2011 at 1:11am
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 -
Re: Adding .vcf to allowed extensions

29 April 2011 at 2:14am
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
-
Re: Adding .vcf to allowed extensions

29 April 2011 at 2:50am
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
| 1502 Views | ||
|
Page:
1
|
Go to Top |


