Roundcube 1.7.4, php 8.3.33, FreeBSD 14.4
Roundcube is unable to attach files with certain extension to a mail (e. g. .png, .jpg, .svg). Other file extensions work just fine (e. g. .pdf, .docx, .xls).
Trying to upload a .svg file, for example, logs the following error. Errors for .png and .jpg look identical.
------
[09-Oct-2026 20:35:18 Europe/Berlin] PHP Fatal error: Uncaught Exception: finfo::__construct(): EXTENSION type ` journal~' has bad char '~' in /usr/local/www/roundcube/program/lib/Roundcube/rcube_mime.php:745
Stack trace:
#0 /usr/local/www/roundcube/program/lib/Roundcube/rcube_mime.php(745): finfo->__construct(1040, '/usr/share/misc...')
#1 /usr/local/www/roundcube/program/actions/mail/attachment_upload.php(109): rcube_mime::file_content_type('/tmp/phpF8Txhh', 'test.svg', 'image/svg+xml')
#2 /usr/local/www/roundcube/program/include/rcmail.php(280): rcmail_action_mail_attachment_upload->run(Array)
#3 /usr/local/www/roundcube/public_html/index.php(266): rcmail->action_handler()
#4 {main}
thrown in /usr/local/www/roundcube/program/lib/Roundcube/rcube_mime.php on line 745
------
Any ideas what could be causing this?
Cheers
sheep2045