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.

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.

General Questions /

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

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

SS3.1 File::$allowed_extensions


Go to End


2 Posts   1672 Views

Avatar
zenmonkey

Community Member, 545 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, 187 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'));