Redactor Redactor 3.x Feature Configuration Upload Filename Sanitization
On upload, Redactor will sanitize file names to make sure they’re clean.
This uses a few system settings:
redactor.sanitize_pattern, contains a REGEX pattern of acceptable characters. Defaults to/([[:alnum:]_\.-]*)/redactor.sanitize_replacecontains the value invalid characters are replaced with, defaults to_redactor.translitcan be set to a transliteration strategy.iconvis included; others can be enabled with a third party package such as Translit. If you’ve configured the MODX coretranslitsetting, you can leaveredactor.translitempty to inherit the same configuration.redactor.translit_classredactor.translit_class_path
To disable file name cleaning (which is not recommended unless you use a separate implementation), disable Clean filenames in the Media - Uploads section of the configurator.