Sterc / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
6 stars 1 forks source link

Add transliteration of files when uploading to a media source #36

Closed ilyautkin closed 3 years ago

ilyautkin commented 3 years ago

What does it do?

Add system setting upload_translit. If this setting is yes (default), filename of any uploaded file will be transliterated according global translitirating rules (setting friendly_alias_translit)

Why is it needed?

There are many problems a file can give on server, for example, with a russian name.

How to test

You should to rebuild transport core - php _build/transport.core.php, remove /setup/.locked/ and run setup. Then you can install Translit extra from MODX repo or any other, for example yTranslit from modstore.pro. Set setting friendly_alias_translit to russian or any other. Upload any files with non latin symbols. Name of uploaded file should be transliterated.

Related issue(s)/PR(s)

https://github.com/modxcms/revolution/issues/15007 https://github.com/modxcms/revolution/pull/15457