existing_filenames_sanitizer
2 sites
No security coverage
This module provides a Drush command to sanitize existing filenames in your Drupal site. It's especially useful if you enable Drupal core’s filename sanitization but have legacy files uploaded before that setting was active.
Features include:
- Bulk sanitization of permanent file entities
- Dry-run mode for safe previews
- Configurable sanitization options (e.g., transliteration, lowercase, whitespace handling)
- Conflict detection to avoid overwriting
- Graceful handling of temporary or missing files
- Progress tracking and detailed logging
Ideal for maintaining consistent, safe filenames across your file system, especially in multilingual or legacy environments.
Requirements:
- Drupal 10 or 11
- Drush 10+
- File module enabled