SilverStripe\Assets\FileNameFilter::filter
Depending on the applied replacement rules, this method might result in an empty string. In this case, {@link getDefaultName()} will be used to return a randomly generated file name, while retaining its extension.
Signature
public function filter(string
$name )
Parameters
$name
— string- including extension (not path).
Returns
- string
- A filtered filename