Model
ContentValidator
Magento\Downloadable\Model\File\ContentValidator
What it does
This validator class ensures that downloadable product file content is properly formatted and secure before being saved.
Developers use it when creating or updating downloadable product links or samples to validate that the base64-encoded file data is valid and the filename doesn't contain potentially dangerous characters that could cause security issues or filesystem problems.
Public Methods
- isValid()