Issue Bug Closed

#96744Unsupported file typ xxx.dwg (image/vnd.dwg)

Martin Weymayer 02/04/22, 11:44 updated 11/27/23, 17:23

Description

If you upload some “image” files to folder in fileadmin which are not listet in ImageMagickFile.php -> protected $allowedExtensions following error occures:
Unsupported file typ xxx.dwg (image/vnd.dwg)

This happens since introducing MimeTypeCollection.php where ‘image/vnd.dwg’ => [‘dwg’], is added like other file types and TYPO3 ist now trying to send file through ImageMagick which can not handle the file type.

By manually (quick and dirty) adding protected $allowedExtensions = [‘png’, ‘jpg’, ‘jpeg’, ‘gif’, ‘webp’, ‘tif’, ‘tiff’, ‘bmp’, ‘pcx’, ‘tga’, ‘ico’, ‘dwg’]; to line 87 in ImageMagickFile.php I could solve the problem – but next update all get lost.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.