Jump to:

23372 Posts in 18175 Topics by 2865 members

General Questions

SilverStripe Forums » General Questions » SS3.1 File::$allowed_extensions

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

Page: 1
Go to End
Author Topic: 341 Views
  • zenmonkey
    Community Member
    527 Posts

    SS3.1 File::$allowed_extensions Link to this post

    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();

  • kinglozzer
    Community Member
    138 Posts

    Re: SS3.1 File::$allowed_extensions Link to this post

    In config.yml

    - exe
    - foo

    Or in _config.php

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.