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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1302 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'));