Model
Filename
Magento\Config\Model\Config\Backend\Filename
What it does
This backend model is used for configuration fields that store filenames.
It automatically sanitizes filename values by extracting only the base filename (removing any directory paths) before saving to the configuration, ensuring that only valid filenames without directory traversal are stored in the system configuration.
Public Methods
- beforeSave()