These files may be large and serving them through the web server is desirable but those files are also among those that might require additional protection.
*/
public const SAFE_FILE_EXTENSIONS = [
'avif' => 'image/avif',
- 'bz2' => 'application/x-bzip2',
'gif' => 'image/gif',
- 'gz' => 'application/gzip',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'mp3' => 'audio/mpeg',
'mp4' => 'video/mp4',
'pdf' => 'application/pdf',
'png' => 'image/png',
- 'rar' => 'application/vnd.rar',
- 'tar' => 'application/x-tar',
'tiff' => 'image/tiff',
'txt' => 'text/plain',
'webm' => 'video/webm',
'webp' => 'image/webp',
- 'zip' => 'application/zip',
];
/** @var array<string, FileThumbnail> */