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   380 Views

Avatar
zenmonkey

16 November 2013 at 3:28am Community Member, 528 Posts

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

16 November 2013 at 3:33am Community Member, 146 Posts

In config.yml

File:
allowed_extensions:
- exe
- foo

Or in _config.php

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