Currently uploading a file with an '_' (underscore) in it is automatically replace with '-' (hyphen). I need them to stay as _ . The same as this issue: https://github.com/silverstripe/silverstripe-cms/issues/719
I've discovered this happens via FileNameFilter http://api.silverstripe.org/master/class-FileNameFilter.html#_setReplacements
I've tried to follow the instructions to stop this by adding this to the YAML config:
FileNameFilter:
default_use_transliterator: false
default_replacements:
This has no effect do I need to state the new defaults?
And also changing this line:
'/_/' => '-', // underscores to dashes
to this
'/_/' => '_', // underscores to dashes
But this just removes them and closes the gap..
Could someone advise on the correct way to achieve this?