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();
We've moved the forum!
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.
In config.yml
File:
allowed_extensions:
- exe
- foo
Or in _config.php
Config::inst()->update('File', 'allowed_extensions', array('exe', 'foo'));