- 🇨🇭Switzerland berdir Switzerland
📌 Use core file sanitization Needs review does deprecate the custom behaviour.
Currently, sanitizing filenames is hardcoded in the UploadHandler
, implemented in
#2828845: Make filename transliteration consistent with upcoming core issue →
as a temporary solution until
✨
Provide options to sanitize filenames (transliterate, lowercase, replace whitespace, etc)
Fixed
landed in core. Which it has in 8.7 (
change record →
).
Upload a file, make sure filename_transliteration
is enabled in config (by default it is, no UI). See
#2846920: Make filename transliteration optional →
.
Use the new FileUploadSanitizeNameEvent
which is also used by SecurityFileUploadEventSubscriber
in core for preventing insecure filenames.
Modules like transliterate_filenames → now also use this event for translitarion.
Discuss whether the filename_transliteration
should remain optional, especially when the remaining issues of
✨
Provide options to sanitize filenames (transliterate, lowercase, replace whitespace, etc)
Fixed
land (like a user interface for this in core).
None.
Dropzone will trigger the FileUploadSanitizeNameEvent
event during upload.
None.
Closed: duplicate
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
📌 Use core file sanitization Needs review does deprecate the custom behaviour.