Tags: AppsDevTeam/Files
Tags
Adds security check for blocked file extensions This prevents storing files with potentially executable extensions (e.g., PHP scripts) that could be executed if placed under a web server's document root. It introduces a configurable list of blocked extensions (defaulting to PHP-related ones) and a `BlockedExtensionException` to signal when such an attempt is made. The check is case-insensitive and considers the last extension.
Adds MIME type detection and storage to File entity The changes include: - Adds a `mimeType` property and corresponding getter/setter to the File entity and trait. - Implements automatic MIME type detection in `FileListener` during file processing. - Adds the `ext-fileinfo` extension as a project dependency.
PreviousNext