Roundcube Community Forum

 

Attached file icon ppt(x) unrecognised

Started by Franck, January 20, 2016, 03:55:44 AM

Previous topic - Next topic

Franck

Good morning,
I  meet a problem with .ppt and .pptx icons in "attach a file" column in the compose interface.
The icon is replaced by "? ? ?" icon.
The sending works find and the attached file readable.
Tnx for your help and best regards.

SKaero

That would tend to indicate that there is a problem with mimetype's on your server. You may need to set the following options in the Roundcube config:

// Path to a local mime magic database file for PHPs finfo extension.
// Set to null if the default path should be used.
$config['mime_magic'] = null;
// Absolute path to a local mime.types mapping table file.
// This is used to derive mime-types from the filename extension or vice versa.
// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
$config['mime_types'] = null;

Franck

Tnx for your proposal SKaero,
But these options are like that already defined.
// attachments of these types will open in a preview window
// either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
$rcmail_config['client_mimetypes'] = null;  # null == default

// Path to a local mime magic database file for PHPs finfo extension.
// Set to null if the default path should be used.
$rcmail_config['mime_magic'] = null;

// Absolute path to a local mime.types mapping table file.
// This is used to derive mime-types from the filename extension or vice versa.
// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
$rcmail_config['mime_types'] = null;

Franck

I also tried the absolute path toward the mime.types file and the issue is the same

SKaero

I meant those where the options you may need to set since the null values are the defaults. My guess would be that the mime magic database file for PHPs finfo extension is not correct.

Franck

Thank's SKaero, i now understood.
I'm sorry but i don't know what's the good syntax to add the magic file for .ppt and .pptx files.
I have read some subjects about that but i don't understand very well.
Please can you help me ?

Best regards

SKaero

The mime magic database is located in different places depending on the OS. What OS and PHP version are you using?

Franck

The OS is a Red Hat Entreprise Linux Server 6.5 and  PHP 5.3.3

Best regards

SKaero


Franck

My Roundcube release is 0.9.5 and unless I'm mistaken PHP 5.3.3 answered to the requires.
He is fully functional from 2 years but i would like to find a solution for this ppt(x) icon and mime type.

Thank's a lot

JohnDoh

icons for ppt(x) were added in 1.0. you need to upgrade your version of Roundcube
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Franck

Ouuhhh ! The upgrade was not in my projects at this time.

No way to add a patch for the icon issue ?

I must verify the requires for Roundcube and my OS but i think that i gonna have to do a fresh install.
It's a very bad new ...


SKaero

It looks like you may be able to patch it, here is the ticket with the change set where it was added: http://trac.roundcube.net/ticket/1489225

Franck

Thank you very much.
It works find with the patch.

Best regards and have a nice day,
Franck