Jump to:

23477 Posts in 18941 Topics by 2878 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: 367 Views
  • zenmonkey
    Avatar
    Community Member
    528 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
    Avatar
    Community Member
    139 Posts

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

    In config.yml

    File:
    allowed_extensions:
    - exe
    - foo

    Or in _config.php

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

    367 Views
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.