File name sanitization in Drupal 10.2

It's not exactly a feature peak, but it is a new feature in Drupal that is still relatively unknown, so I'm writing about it.

Every time I created a social share image for my blog post in Canva, I had to change the file name after downloading to replace spaces with a middle dash, and convert uppercase letters to lowercase. However, starting with Drupal 10.2, this is no longer necessary. From this version onwards, there is an option for file name sanitization.

You can find this option on the following page: /admin/config/media/file-system.


The file name is changed during the file upload, either through the UI or via REST. For more information, please refer to the change record.

About the Author

Goran Nikolovski is an experienced web and AI developer skilled in Drupal, React, and React Native. He founded this website and enjoys sharing his knowledge.