SilverStripe\Assets\Upload_Validator::setAllowedExtensions
Limit allowed file extensions. Empty by default, allowing all extensions.
To allow files without an extension, use an empty string. See to get a good standard set of extensions that are typically not harmful in a webserver context. See to limit file size by extension.
Signature
public function setAllowedExtensions(array
$rules )
Parameters
$rules
— array- List of extensions