Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

SS3.1 File::$allowed_extensions


Reply


2 Posts   418 Views

Avatar
zenmonkey

Community Member, 528 Posts

16 November 2013 at 3:28am

What is the correct method for setting allowed extensions and app categories on 3.1, since it's now private it can't be set in the config using File::$allowed_extensions = array();

Avatar
kinglozzer

Community Member, 166 Posts

16 November 2013 at 3:33am

In config.yml

File:
allowed_extensions:
- exe
- foo

Or in _config.php

Config::inst()->update('File', 'allowed_extensions', array('exe', 'foo'));